summaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
authorhackademix2019-05-22 16:59:18 +0200
committerhackademix2019-05-22 16:59:18 +0200
commitc84673b110a3843d52ff3a531fc7593cef2b7ca3 (patch)
treea53e0544185c7ebcc8a2326bff98474b8c920bad /src/content
parent732ba767a65d491c3d0ecbf944e0019de242748f (diff)
downloadnoscript-c84673b110a3843d52ff3a531fc7593cef2b7ca3.tar.gz
noscript-c84673b110a3843d52ff3a531fc7593cef2b7ca3.tar.xz
noscript-c84673b110a3843d52ff3a531fc7593cef2b7ca3.zip
Removed legacy DomNode.replaceChild() usage.
Diffstat (limited to 'src/content')
-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) {