@xiee/utils
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -16,2 +16,12 @@ (function(d) { | ||
location.hash.match(/^#comment-[0-9]+$/) && a.scrollIntoView(); | ||
// create a new script and change attribute 'data-src' to 'src' (to actually load the script) | ||
const s = a.querySelector('script[data-src]'); | ||
if (!s) return; | ||
const r = s.dataset.src, s2 = d.createElement('script'), b = s.attributes; | ||
for (let i = 0; i < b.length; i++) { | ||
s2.setAttribute(b[i].name, b[i].value); | ||
} | ||
s2.src = r; | ||
s.remove(); | ||
a.appendChild(s2); | ||
})(document); |
{ | ||
"name": "@xiee/utils", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Miscellaneous tools and utilities to manipulate HTML pages", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
22432
478