[Chromium] Fix high contrast option not working.
This commit is contained in:
parent
365d47802d
commit
bd68d31773
|
@ -76,8 +76,8 @@ var UI = (() => {
|
||||||
}
|
}
|
||||||
resolve();
|
resolve();
|
||||||
if (UI.onSettings) UI.onSettings();
|
if (UI.onSettings) UI.onSettings();
|
||||||
if (UI.tabId === -1 || UI.xssBlockedInTab) UI.createXSSChoiceManager();
|
|
||||||
await HighContrast.init();
|
await HighContrast.init();
|
||||||
|
if (UI.tabId === -1 || UI.xssBlockedInTab) UI.createXSSChoiceManager();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
UI.pullSettings();
|
UI.pullSettings();
|
||||||
|
@ -155,6 +155,7 @@ var UI = (() => {
|
||||||
},
|
},
|
||||||
|
|
||||||
createXSSChoiceManager(parent = "#xssChoices") {
|
createXSSChoiceManager(parent = "#xssChoices") {
|
||||||
|
if (!UA.isMozilla) return;
|
||||||
let choicesUI = document.querySelector(parent);
|
let choicesUI = document.querySelector(parent);
|
||||||
if (!choicesUI) return;
|
if (!choicesUI) return;
|
||||||
choicesUI.classList.remove("populated");
|
choicesUI.classList.remove("populated");
|
||||||
|
|
Loading…
Reference in New Issue