1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-21 21:11:35 +01:00

Add key generation service to deps (#8070)

* add missing arg to browser crypto

* add key generation service to deps

* initialize key generation service after deps in main background
This commit is contained in:
Jake Fink 2024-02-23 11:52:50 -05:00 committed by GitHub
parent 3367339f9b
commit a31e3bf842
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -335,8 +335,8 @@ export default class MainBackground {
? new BrowserMessagingPrivateModeBackgroundService()
: new BrowserMessagingService();
this.logService = new ConsoleLogService(false);
this.keyGenerationService = new KeyGenerationService(this.cryptoFunctionService);
this.cryptoFunctionService = new WebCryptoFunctionService(self);
this.keyGenerationService = new KeyGenerationService(this.cryptoFunctionService);
this.storageService = new BrowserLocalStorageService();
this.secureStorageService = new BrowserLocalStorageService();
this.memoryStorageService =

View File

@ -285,6 +285,7 @@ function getBgService<T>(service: keyof MainBackground) {
return cryptoService;
},
deps: [
KeyGenerationService,
CryptoFunctionService,
EncryptService,
PlatformUtilsService,