From 7f3238eda0913e267e6607068645df3023440bc0 Mon Sep 17 00:00:00 2001 From: Victor Lyuboslavsky Date: Sun, 30 Jun 2024 10:56:30 -0500 Subject: [PATCH] Fixed bug with update --- src/popup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/popup.ts b/src/popup.ts index 93cd8fc..4da9ca9 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -8,7 +8,7 @@ chrome.storage.sync.get(null, (data) => { const config = data as StoredConfig checkbox.checked = !(config.mode?.id === "off") const mode = config.mode ?? MODES[1] - void chrome.action.setIcon({ path: mode.icon }) + void chrome.action.setIcon({ path: MODES[mode.index].icon }) const literals: string[] = config.literals ?? [] // Loop over NUMBER_OF_LITERALS elements and listen to each one.