mirror of
https://github.com/tcsenpai/Zundler.git
synced 2025-06-08 12:35:39 +00:00
Add more source pragmas
This commit is contained in:
parent
649324d576
commit
351582e055
@ -23,7 +23,7 @@ var embed_js = function() {
|
|||||||
var src = newScript.getAttribute('src');
|
var src = newScript.getAttribute('src');
|
||||||
let [path, get_parameters, anchor] = split_url(src);
|
let [path, get_parameters, anchor] = split_url(src);
|
||||||
path = normalize_path(path);
|
path = normalize_path(path);
|
||||||
var src = retrieve_file(path);
|
var src = retrieve_file(path) + ' //# ' + path;
|
||||||
newScript.appendChild(document.createTextNode(src));
|
newScript.appendChild(document.createTextNode(src));
|
||||||
newScript.removeAttribute('src');
|
newScript.removeAttribute('src');
|
||||||
oldScript.parentNode.replaceChild(newScript, oldScript);
|
oldScript.parentNode.replaceChild(newScript, oldScript);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user