outerHTML fix
This commit is contained in:
parent
6074da9a52
commit
d3c0ab1e72
|
@ -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 (
|
||||||
|
|
Loading…
Reference in New Issue