From 93364242df908f9c8fdc4698f523d158120461bb Mon Sep 17 00:00:00 2001 From: ttys0dev <126845556+ttys0dev@users.noreply.github.com> Date: Wed, 3 Apr 2024 14:35:09 -0600 Subject: [PATCH] Fix setBadgeText type error Fixes: Error: Type error for parameter details (Property "text" is required) for browserAction.setBadgeText. --- src/toolbar_button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toolbar_button.js b/src/toolbar_button.js index 1dbfe0fe..95bce0fe 100644 --- a/src/toolbar_button.js +++ b/src/toolbar_button.js @@ -30,7 +30,7 @@ function updateToolbarButton(tab) { chrome.storage.local.get('options', function(items){ if ('dismiss_bagde' in items['options'] && items['options']['dismiss_bagde']) { - chrome.browserAction.setBadgeText({}); + chrome.browserAction.setBadgeText({ text: '' }); } else { chrome.browserAction.setBadgeText({ text: '🎁' }); }