Skip to content

Commit

Permalink
Fix setBadgeText type error
Browse files Browse the repository at this point in the history
Fixes:
Error: Type error for parameter details (Property "text" is required) for browserAction.setBadgeText.
  • Loading branch information
ttys0dev committed Apr 3, 2024
1 parent 4ad7666 commit 9336424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toolbar_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: '🎁' });
}
Expand Down

0 comments on commit 9336424

Please sign in to comment.