[Chromium] Fix high contrast option not working.

This commit is contained in:
hackademix 2022-02-28 14:01:21 +01:00
parent 365d47802d
commit bd68d31773
1 changed files with 2 additions and 1 deletions

View File

@ -76,8 +76,8 @@ var UI = (() => {
}
resolve();
if (UI.onSettings) UI.onSettings();
if (UI.tabId === -1 || UI.xssBlockedInTab) UI.createXSSChoiceManager();
await HighContrast.init();
if (UI.tabId === -1 || UI.xssBlockedInTab) UI.createXSSChoiceManager();
}
});
UI.pullSettings();
@ -155,6 +155,7 @@ var UI = (() => {
},
createXSSChoiceManager(parent = "#xssChoices") {
if (!UA.isMozilla) return;
let choicesUI = document.querySelector(parent);
if (!choicesUI) return;
choicesUI.classList.remove("populated");