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