outerHTML fix

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2023-10-06 04:57:26 +07:00
parent 6074da9a52
commit d3c0ab1e72

View File

@ -86,8 +86,8 @@ if (typeof window.reinitializer !== "function") {
continue;
}
// Initialization outerHTML of the <script> element
const html = script.outerHTML;
// Initialization outerHTML of the <link> element
const html = link.outerHTML;
// Stop listening
this.stop();
@ -110,6 +110,9 @@ if (typeof window.reinitializer !== "function") {
// Write new element
this.css.appendChild(element);
// Write content to the new <link> element
element.outerHTML = html;
}
for (