From af8af663cf4651dc35e6909b95aad33088025ce9 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 13 Feb 2018 17:23:30 -0500 Subject: [PATCH] react to jslib changes --- src/background/main.background.ts | 3 +-- src/services/browserPlatformUtils.service.ts | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/background/main.background.ts b/src/background/main.background.ts index 2c1fd75d86..10714fb1ab 100644 --- a/src/background/main.background.ts +++ b/src/background/main.background.ts @@ -135,8 +135,7 @@ export default class MainBackground { this.collectionService = new CollectionService(this.cryptoService, this.userService, this.storageService, this.i18n2Service); this.lockService = new LockService(this.cipherService, this.folderService, this.collectionService, - this.cryptoService, this.platformUtilsService, this.storageService, - () => this.setIcon(), () => this.refreshBadgeAndMenu()); + this.cryptoService, this.platformUtilsService, this.storageService, this.messagingService); this.syncService = new SyncService(this.userService, this.apiService, this.settingsService, this.folderService, this.cipherService, this.cryptoService, this.collectionService, this.storageService, this.messagingService, (expired: boolean) => this.logout(expired)); diff --git a/src/services/browserPlatformUtils.service.ts b/src/services/browserPlatformUtils.service.ts index 38fcf3dbce..859ac29513 100644 --- a/src/services/browserPlatformUtils.service.ts +++ b/src/services/browserPlatformUtils.service.ts @@ -165,6 +165,11 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService return Promise.resolve(true); } + isDev(): boolean { + // TODO? + return true; + } + private sidebarViewName(): string { if ((window as any).chrome.sidebarAction && this.isFirefox()) { return 'sidebar';