react-script-hook
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -36,3 +36,8 @@ "use strict"; | ||
Object.keys(attributes).forEach(function (key) { | ||
return scriptEl.setAttribute(key, attributes[key]); | ||
if (scriptEl[key] === undefined) { | ||
scriptEl.setAttribute(key, attributes[key]); | ||
} | ||
else { | ||
scriptEl[key] = attributes[key]; | ||
} | ||
}); | ||
@@ -39,0 +44,0 @@ var handleLoad = function () { |
{ | ||
"name": "react-script-hook", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "React hook to dynamically load an external script and know when its loaded", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8739
78