summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/content/onScriptDisabled.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/onScriptDisabled.js b/src/content/onScriptDisabled.js
index 6083466..080de6f 100644
--- a/src/content/onScriptDisabled.js
+++ b/src/content/onScriptDisabled.js
@@ -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) {