From 65a6758d35230036c9a1f99e7212a7b8064a733c Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sat, 18 May 2024 18:28:30 +0800 Subject: [PATCH] remove await from localized symbols --- scripts/GUI/entrypoints/iconindicator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/GUI/entrypoints/iconindicator.js b/scripts/GUI/entrypoints/iconindicator.js index 7ad3bdb..0cda19b 100644 --- a/scripts/GUI/entrypoints/iconindicator.js +++ b/scripts/GUI/entrypoints/iconindicator.js @@ -35,7 +35,7 @@ class IconIndicator { global.read([`sites`, LOCATION, `status`], -1).then(async (STATUS) => { if (STATUS) { (STATUS[`error`]) ? BrowserIcon.set({ - "BadgeText": await (new texts(`extensionIcon_error`)).symbol, + "BadgeText": (new texts(`extensionIcon_error`)).symbol, "BadgeBackgroundColor": ICON_COLORS[`error`] }, {"tabId": ID}) : false; @@ -43,7 +43,7 @@ class IconIndicator { (STATUS[`done`] >= 1) ? global.read([`sites`, LOCATION, `analysis`, `Rating`, `Trust`]).then(async (RESULTS) => { (RESULTS) ? BrowserIcon.set({ - "BadgeText": await (new texts(`extensionIcon_product_`.concat(RESULTS))).symbol, + "BadgeText": (new texts(`extensionIcon_product_`.concat(RESULTS))).symbol, "BadgeBackgroundColor": ICON_COLORS[`product_`.concat(RESULTS)] }, {"tabId": ID}) : false; }) @@ -58,7 +58,7 @@ class IconIndicator { } BrowserIcon.set({ - "BadgeText": await (new texts(`extensionIcon_website_loading`)).symbol, + "BadgeText": (new texts(`extensionIcon_website_loading`)).symbol, "BadgeBackgroundColor": ICON_COLORS[`loading`] }, {"tabId": TAB.id});