From c84673b110a3843d52ff3a531fc7593cef2b7ca3 Mon Sep 17 00:00:00 2001 From: hackademix Date: Wed, 22 May 2019 16:59:18 +0200 Subject: Removed legacy DomNode.replaceChild() usage. --- src/content/onScriptDisabled.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content') 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) { -- cgit v1.2.3