1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-09 09:51:02 +01:00

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.collectionService = new CollectionService(this.cryptoService, this.userService, this.storageService,
this.i18n2Service); this.i18n2Service);
this.lockService = new LockService(this.cipherService, this.folderService, this.collectionService, this.lockService = new LockService(this.cipherService, this.folderService, this.collectionService,
this.cryptoService, this.platformUtilsService, this.storageService, this.cryptoService, this.platformUtilsService, this.storageService, this.messagingService);
() => this.setIcon(), () => this.refreshBadgeAndMenu());
this.syncService = new SyncService(this.userService, this.apiService, this.settingsService, this.syncService = new SyncService(this.userService, this.apiService, this.settingsService,
this.folderService, this.cipherService, this.cryptoService, this.collectionService, this.folderService, this.cipherService, this.cryptoService, this.collectionService,
this.storageService, this.messagingService, (expired: boolean) => this.logout(expired)); 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); return Promise.resolve(true);
} }
isDev(): boolean {
// TODO?
return true;
}
private sidebarViewName(): string { private sidebarViewName(): string {
if ((window as any).chrome.sidebarAction && this.isFirefox()) { if ((window as any).chrome.sidebarAction && this.isFirefox()) {
return 'sidebar'; return 'sidebar';