summaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
authorhackademix2019-07-21 10:15:37 +0200
committerhackademix2019-07-23 18:11:14 +0200
commitdc2cf89b3f50880ede81dd874238917e8445d7e4 (patch)
treefc8965447c35cdb24e396f34b860e3d623e14be3 /src/content
parentc7f053a622a6f8b783dafa3de9a34ffb31bb5e41 (diff)
downloadnoscript-dc2cf89b3f50880ede81dd874238917e8445d7e4.tar.gz
noscript-dc2cf89b3f50880ede81dd874238917e8445d7e4.tar.xz
noscript-dc2cf89b3f50880ede81dd874238917e8445d7e4.zip
Update childNode.parentNode.removeChild(childNode) pattern to childNode.remove().
Diffstat (limited to 'src/content')
-rw-r--r--src/content/PlaceHolder.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/PlaceHolder.js b/src/content/PlaceHolder.js
index 69db5dd..a13ae37 100644
--- a/src/content/PlaceHolder.js
+++ b/src/content/PlaceHolder.js
@@ -186,7 +186,7 @@ var PlaceHolder = (() => {
close(replacement) {
replacement.classList.add("closing");
this.replacements.delete(replacement);
- window.setTimeout(() => replacement.parentNode.removeChild(replacement), 500);
+ window.setTimeout(() => replacement.remove(), 500);
}
}