Skip to content

Commit 626ee7a

Browse files
committed
fix: correctly read disable badge preference. (fixes #341)
1 parent 08492b5 commit 626ee7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ browser.notifications.onShown.addListener(() => {
1616
//TODO open latest comment?
1717

1818
const updateBadge = async (count) => {
19-
const { disableBadge = false } = browser.storage.local.get('disableBadge');
19+
const { disableBadge = false } = await browser.storage.local.get('disableBadge');
2020
let text = MISSING_AUTH;
2121
if(count !== undefined) {
2222
if(disableBadge) {

0 commit comments

Comments
 (0)