Fix regression: CUSTOM UI broken on Gecko 77 and below.

This commit is contained in:
hackademix 2022-02-17 13:07:20 +01:00
parent e82d98bfaf
commit 367210c153
1 changed files with 3 additions and 2 deletions

View File

@ -621,10 +621,11 @@ var UI = (() => {
let entry = (value, label = value) => {
let opt = document.createElement("option");
opt.value = value;
opt.label = label;
opt.textContent = label;
return opt;
}
ctxSelect.replaceChildren(entry("*", _("anySite")));
for (let child; child = ctxSelect.firstChild;) child.remove();
ctxSelect.appendChild(entry("*", _("anySite")));
let ctxSites = row.perms.contextual;
if (this.mainDomain) {
let key = Sites.optimalKey(this.mainUrl);