Skip to content

Commit

Permalink
Merge pull request #366 from ttys0dev/fix-setbadgetext
Browse files Browse the repository at this point in the history
Fix setBadgeText type error
  • Loading branch information
ERosendo authored Apr 3, 2024
2 parents 4ad7666 + 8fc206d commit fb77b32
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 fb77b32

Please sign in to comment.