diff --git a/src/background/idle.background.ts b/src/background/idle.background.ts index 2c066c4aa7..1be8fca7f6 100644 --- a/src/background/idle.background.ts +++ b/src/background/idle.background.ts @@ -15,7 +15,7 @@ export default class IdleBackground { constructor(private lockService: LockService, private storageService: StorageService, private notificationsService: NotificationsService) { - this.idle = chrome.idle || browser.idle; + this.idle = chrome.idle || (browser && browser.idle); } async init() {