mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00: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:
@@ -335,8 +335,8 @@ export default class MainBackground {
|
|||||||
? new BrowserMessagingPrivateModeBackgroundService()
|
? new BrowserMessagingPrivateModeBackgroundService()
|
||||||
: new BrowserMessagingService();
|
: new BrowserMessagingService();
|
||||||
this.logService = new ConsoleLogService(false);
|
this.logService = new ConsoleLogService(false);
|
||||||
this.keyGenerationService = new KeyGenerationService(this.cryptoFunctionService);
|
|
||||||
this.cryptoFunctionService = new WebCryptoFunctionService(self);
|
this.cryptoFunctionService = new WebCryptoFunctionService(self);
|
||||||
|
this.keyGenerationService = new KeyGenerationService(this.cryptoFunctionService);
|
||||||
this.storageService = new BrowserLocalStorageService();
|
this.storageService = new BrowserLocalStorageService();
|
||||||
this.secureStorageService = new BrowserLocalStorageService();
|
this.secureStorageService = new BrowserLocalStorageService();
|
||||||
this.memoryStorageService =
|
this.memoryStorageService =
|
||||||
|
|||||||
@@ -285,6 +285,7 @@ function getBgService<T>(service: keyof MainBackground) {
|
|||||||
return cryptoService;
|
return cryptoService;
|
||||||
},
|
},
|
||||||
deps: [
|
deps: [
|
||||||
|
KeyGenerationService,
|
||||||
CryptoFunctionService,
|
CryptoFunctionService,
|
||||||
EncryptService,
|
EncryptService,
|
||||||
PlatformUtilsService,
|
PlatformUtilsService,
|
||||||
|
|||||||
Reference in New Issue
Block a user