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