Update childNode.parentNode.removeChild(childNode) pattern to childNode.remove().
This commit is contained in:
parent
c7f053a622
commit
dc2cf89b3f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue