From dc2cf89b3f50880ede81dd874238917e8445d7e4 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sun, 21 Jul 2019 10:15:37 +0200 Subject: Update childNode.parentNode.removeChild(childNode) pattern to childNode.remove(). --- src/content/PlaceHolder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content') 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); } } -- cgit v1.2.3