From 271f9df8ae8a1552caa50782f93d1cfd196a1abd Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 21 Apr 2018 23:55:34 -0400 Subject: [PATCH] pass crypto function service more --- jslib | 2 +- src/background/main.background.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jslib b/jslib index fc1114a6bd..5e7115f78d 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit fc1114a6bd66b62b7821958fca2a0c9260c08ddc +Subproject commit 5e7115f78d8a87b241a43fdcd6d53b67ccf0b605 diff --git a/src/background/main.background.ts b/src/background/main.background.ts index c448dcbfcb..064c6c5409 100644 --- a/src/background/main.background.ts +++ b/src/background/main.background.ts @@ -145,11 +145,11 @@ export default class MainBackground { this.folderService, this.cipherService, this.cryptoService, this.collectionService, this.storageService, this.messagingService, (expired: boolean) => this.logout(expired)); this.passwordGenerationService = new PasswordGenerationService(this.cryptoService, this.storageService); - this.totpService = new TotpService(this.storageService); + this.totpService = new TotpService(this.storageService, cryptoFunctionService); this.autofillService = new AutofillService(this.cipherService, this.tokenService, this.totpService, this.utilsService, this.platformUtilsService); this.containerService = new ContainerService(this.cryptoService, this.platformUtilsService); - this.auditService = new AuditService(this.cryptoService); + this.auditService = new AuditService(cryptoFunctionService); this.analytics = new Analytics(window, () => BrowserApi.gaFilter(), this.platformUtilsService, this.storageService, this.appIdService);