mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
Update idle.background.ts (#961)
Handle cases where `chrome.idle` doesn't exist and there is no `browser` object either. Fixes #960
This commit is contained in:
committed by
Kyle Spearrin
parent
f35bc516c0
commit
4d3ffad257
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user