Removed legacy DomNode.replaceChild() usage.

This commit is contained in:
hackademix 2019-05-22 16:59:18 +02:00
parent 732ba767a6
commit c84673b110
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ function onScriptDisabled() {
// force show NOSCRIPT elements content // force show NOSCRIPT elements content
let replacement = createHTMLElement("span"); let replacement = createHTMLElement("span");
replacement.innerHTML = noscript.innerHTML; replacement.innerHTML = noscript.innerHTML;
noscript.parentNode.replaceChild(replacement, noscript); noscript.replaceWith(replacement);
// emulate meta-refresh // emulate meta-refresh
let meta = replacement.querySelector('meta[http-equiv="refresh"]'); let meta = replacement.querySelector('meta[http-equiv="refresh"]');
if (meta) { if (meta) {