diff --git a/src/js/popup.js b/src/js/popup.js index 02c8999..7001348 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -1013,13 +1013,26 @@ Logic.registerPanel(P_CONTAINER_EDIT, { } }, - initializeRadioButtons() { + async findColorset() { + let CUDenabled; + try { + CUDenabled = await browser.contextualIdentities.CUDcolors(); + } catch(error) { + CUDenabled = false; + } + return CUDenabled; + }, + + async initializeRadioButtons() { const colorRadioTemplate = (containerColor) => { return escaped`