From 1bf7a7cad6b53ab3f7c12f6eb02646031de7f49a Mon Sep 17 00:00:00 2001 From: Daniel James Smith Date: Mon, 18 Oct 2021 16:31:59 +0200 Subject: [PATCH] Perform null check on chrome.runtime --- src/background/notification.background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/notification.background.ts b/src/background/notification.background.ts index 49ab35e3cb2..c58f2426904 100644 --- a/src/background/notification.background.ts +++ b/src/background/notification.background.ts @@ -35,7 +35,7 @@ export default class NotificationBackground { } async init() { - if (!chrome.runtime) { + if (chrome.runtime == null) { return; }