summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/PlaceHolder.js2
-rw-r--r--src/ui/ui.js6
2 files changed, 4 insertions, 4 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);
}
}
diff --git a/src/ui/ui.js b/src/ui/ui.js
index a387d6e..2ebaa41 100644
--- a/src/ui/ui.js
+++ b/src/ui/ui.js
@@ -162,7 +162,7 @@ var UI = (() => {
canary.style.display = "none";
document.body.appendChild(canary);
UI.highContrast = window.getComputedStyle(canary).backgroundImage === "none";
- canary.parentNode.removeChild(canary);
+ canary.remove();
}
return UI.highContrast;
}
@@ -361,7 +361,7 @@ var UI = (() => {
this.rowTemplate = this.initRow();
for (let r of this.allSiteRows()) {
- r.parentNode.removeChild(r);
+ r.remove();
}
this.customize(null);
this.sitesCount = 0;
@@ -760,7 +760,7 @@ var UI = (() => {
policy.set(site, row.perms);
for(let r of this.allSiteRows()) {
if (r !== row && r.siteMatch === site && r.contextMatch === row.contextMatch) {
- r.parentNode.removeChild(r);
+ r.remove();
}
}
let newRow = this.createSiteRow(site, site, row.perms, row.contextMatch, row.sitesCount);