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 8fc206d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Features:

Changes:
- 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)).
- Fix setBadgeText type error([#366](https://github.com/freelawproject/recap-chrome/pull/366)).

Fixes:
- None yet
Expand Down
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 8fc206d

Please sign in to comment.