Removed legacy DomNode.replaceChild() usage.
This commit is contained in:
parent
732ba767a6
commit
c84673b110
|
@ -4,7 +4,7 @@ function onScriptDisabled() {
|
|||
// force show NOSCRIPT elements content
|
||||
let replacement = createHTMLElement("span");
|
||||
replacement.innerHTML = noscript.innerHTML;
|
||||
noscript.parentNode.replaceChild(replacement, noscript);
|
||||
noscript.replaceWith(replacement);
|
||||
// emulate meta-refresh
|
||||
let meta = replacement.querySelector('meta[http-equiv="refresh"]');
|
||||
if (meta) {
|
||||
|
|
Loading…
Reference in New Issue