null check

This commit is contained in:
Kyle Spearrin 2019-06-28 23:33:53 -04:00
parent 4d3ffad257
commit ded5ace0de
2 changed files with 2 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 00f1aad65ea2e243713d409873dfb5d833296897
Subproject commit 3238b819268d2155376a22b963887f59a3eeb7ca

View File

@ -15,7 +15,7 @@ export default class IdleBackground {
constructor(private lockService: LockService, private storageService: StorageService,
private notificationsService: NotificationsService) {
this.idle = chrome.idle || (browser && browser.idle);
this.idle = chrome.idle || (browser != null ? browser.idle : null);
}
async init() {