Skip to content

Commit

Permalink
Verify that notificationCheckbox is non-null (#2064)
Browse files Browse the repository at this point in the history
  • Loading branch information
mquevill authored Sep 15, 2023
1 parent 261861d commit 86aced7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ ipc.answerMain('toggle-mute-notifications', async () => {
await closePreferences();
}

// TODO: Fix notifications
if (notificationCheckbox === null) {
return false;
}

return !notificationCheckbox.checked;
});

Expand Down

0 comments on commit 86aced7

Please sign in to comment.