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:
parent
3367339f9b
commit
a31e3bf842
@ -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 =
|
||||
|
@ -285,6 +285,7 @@ function getBgService<T>(service: keyof MainBackground) {
|
||||
return cryptoService;
|
||||
},
|
||||
deps: [
|
||||
KeyGenerationService,
|
||||
CryptoFunctionService,
|
||||
EncryptService,
|
||||
PlatformUtilsService,
|
||||
|
Loading…
Reference in New Issue
Block a user