diff --git a/scripts/GUI/entrypoints/icons.js b/scripts/GUI/entrypoints/icons.js index 432314e..932a080 100644 --- a/scripts/GUI/entrypoints/icons.js +++ b/scripts/GUI/entrypoints/icons.js @@ -1,14 +1,21 @@ import BrowserIcon from '/scripts/GUI/extensionIcon.js'; import Image from '/scripts/mapping/image.js'; +import {session} from '/scripts/secretariat.js'; class IconIndicator { + /* + Indicate that the website is supported through icon change. + */ static async enable() { - // WIP. Make sure to determine if the product is bad / good - BrowserIcon.set(await Image.get('default')); + // Set default enabled icon. + BrowserIcon.set({"Icon": await Image.get('default')}); } + /* + Indicate that the website isn't supported through icon change. + */ static async disable() { - BrowserIcon.set(await Image.get('disabled')); + BrowserIcon.setIcon({"Icon": await Image.get('disabled')}); } }