fix external-script not inserting script at right place

This commit is contained in:
Leopoldthecoder 2017-03-12 19:51:30 +08:00
commit 92070e3099
3 changed files with 3 additions and 3 deletions

View file

@ -11,8 +11,8 @@ function handleExternalScript () {
newScript[attribute] = script[attribute];
});
script.parentNode.insertBefore(newScript, script);
script.parentNode.removeChild(script);
container.appendChild(newScript);
}
}