From e4cac731742e7fc345dab60137ffbc03fa985051 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 28 Aug 2018 08:38:29 -0400 Subject: [PATCH] support for logout notification --- jslib | 2 +- src/background/main.background.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jslib b/jslib index bc198c60d19..45da8aa9eb4 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit bc198c60d1916600f3bfb6ec82dd900dc6bd0642 +Subproject commit 45da8aa9eb4dd7e12c9fa67ed09189bc4d5ed2f1 diff --git a/src/background/main.background.ts b/src/background/main.background.ts index 2faf00dd6d0..c1aaa4421ee 100644 --- a/src/background/main.background.ts +++ b/src/background/main.background.ts @@ -130,7 +130,7 @@ export default class MainBackground { this.tokenService = new TokenService(this.storageService); this.appIdService = new AppIdService(this.storageService); this.apiService = new ApiService(this.tokenService, this.platformUtilsService, - async (expired: boolean) => await this.logout(expired)); + (expired: boolean) => this.logout(expired)); this.userService = new UserService(this.tokenService, this.storageService); this.settingsService = new SettingsService(this.userService, this.storageService); this.cipherService = new CipherService(this.cryptoService, this.userService, this.settingsService, @@ -161,7 +161,7 @@ export default class MainBackground { this.auditService = new AuditService(cryptoFunctionService, this.apiService); this.exportService = new ExportService(this.folderService, this.cipherService, this.apiService); this.notificationsService = new NotificationsService(this.userService, this.syncService, this.appIdService, - this.apiService, this.cryptoService); + this.apiService, this.cryptoService, () => this.logout(true)); this.environmentService = new EnvironmentService(this.apiService, this.storageService, this.notificationsService); this.analytics = new Analytics(window, () => BrowserApi.gaFilter(), this.platformUtilsService,