From 4af1cc8e159a6686ffa2c21743a941079a4e208a Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sat, 27 Apr 2024 09:49:25 +0800 Subject: [PATCH] modify icon command following a13702e0c207a44f4cc90b523b09fb1b7200fb47 --- scripts/GUI/entrypoints/icons.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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')}); } }