diff options
author | hackademix | 2019-05-22 16:59:18 +0200 |
---|---|---|
committer | hackademix | 2019-05-22 16:59:18 +0200 |
commit | c84673b110a3843d52ff3a531fc7593cef2b7ca3 (patch) | |
tree | a53e0544185c7ebcc8a2326bff98474b8c920bad /src | |
parent | 732ba767a65d491c3d0ecbf944e0019de242748f (diff) | |
download | noscript-c84673b110a3843d52ff3a531fc7593cef2b7ca3.tar.gz noscript-c84673b110a3843d52ff3a531fc7593cef2b7ca3.tar.xz noscript-c84673b110a3843d52ff3a531fc7593cef2b7ca3.zip |
Removed legacy DomNode.replaceChild() usage.
Diffstat (limited to 'src')
-rw-r--r-- | src/content/onScriptDisabled.js | 2 |
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) { |