react to jslib changes
This commit is contained in:
parent
417ee7a67f
commit
af8af663cf
|
@ -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));
|
||||||
|
|
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue