Skip to content

Commit 8fc206d

Browse files
committed
Fix setBadgeText type error
Fixes: Error: Type error for parameter details (Property "text" is required) for browserAction.setBadgeText.
1 parent 4ad7666 commit 8fc206d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Features:
99

1010
Changes:
1111
- Adds a badge to the extension icon and a banner in the popup to link users to a donate page with information about the pacer class action([#367](https://github.com/freelawproject/recap/issues/367), [#364](https://github.com/freelawproject/recap-chrome/pull/364)).
12+
- Fix setBadgeText type error([#366](https://github.com/freelawproject/recap-chrome/pull/366)).
1213

1314
Fixes:
1415
- None yet

src/toolbar_button.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function updateToolbarButton(tab) {
3030
chrome.storage.local.get('options', function(items){
3131

3232
if ('dismiss_bagde' in items['options'] && items['options']['dismiss_bagde']) {
33-
chrome.browserAction.setBadgeText({});
33+
chrome.browserAction.setBadgeText({ text: '' });
3434
} else {
3535
chrome.browserAction.setBadgeText({ text: '🎁' });
3636
}

0 commit comments

Comments
 (0)