Skip to content

Commit

Permalink
fix: improve external script plugin (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
slengyel-lnx authored and QingWei-Li committed Oct 23, 2018
1 parent 1897bb6 commit 50c2434
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/plugins/external-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function handleExternalScript() {
var newScript = document.createElement('script');

Array.prototype.slice.call(script.attributes).forEach(function (attribute) {
newScript[attribute.name] = attribute.value;
newScript.setAttribute(attribute.name, attribute.value);
});

script.parentNode.insertBefore(newScript, script);
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/external-script.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 50c2434

Please sign in to comment.