From 86aced76237787c8f8ace8f0549d1b763c745fd1 Mon Sep 17 00:00:00 2001 From: Michael Quevillon Date: Fri, 15 Sep 2023 12:16:42 -0500 Subject: [PATCH] Verify that notificationCheckbox is non-null (#2064) --- source/browser.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/browser.ts b/source/browser.ts index 9841816c7..96c30fb67 100644 --- a/source/browser.ts +++ b/source/browser.ts @@ -288,6 +288,11 @@ ipc.answerMain('toggle-mute-notifications', async () => { await closePreferences(); } + // TODO: Fix notifications + if (notificationCheckbox === null) { + return false; + } + return !notificationCheckbox.checked; });