react to jslib changes

This commit is contained in:
Kyle Spearrin 2018-02-13 17:23:30 -05:00
parent 417ee7a67f
commit af8af663cf
2 changed files with 6 additions and 2 deletions

View File

@ -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));

View File

@ -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';