mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
[bug] Correct DI setup for SystemService (#1257)
The DI refactor created a bad initlizer for SystemService that left out the reload callback. This callback is null in prod, so I just set up a factory initlizer that used null for the callback value. This fixes a bug causing clipboard clearing to not function, as platformUtilsService was not correctly injected.
This commit is contained in:
parent
33704b016f
commit
ef48ba1ae2
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 54c6a4b3c3d34fe6adbbeba5d35a416a3fbc487d
|
||||
Subproject commit 074f1ee7b7b1c866fdb22184505cef1fad005e0c
|
@ -159,13 +159,12 @@ export function initFactory(
|
||||
},
|
||||
{
|
||||
provide: SystemServiceAbstraction,
|
||||
useClass: SystemService,
|
||||
deps: [
|
||||
VaultTimeoutServiceAbstraction,
|
||||
MessagingServiceAbstraction,
|
||||
PlatformUtilsServiceAbstraction,
|
||||
StateServiceAbstraction,
|
||||
],
|
||||
useFactory: (
|
||||
messagingService: MessagingServiceAbstraction,
|
||||
platformUtilsService: PlatformUtilsServiceAbstraction,
|
||||
stateService: StateServiceAbstraction
|
||||
) => new SystemService(messagingService, platformUtilsService, null, stateService),
|
||||
deps: [MessagingServiceAbstraction, PlatformUtilsServiceAbstraction, StateServiceAbstraction],
|
||||
},
|
||||
{ provide: PasswordRepromptServiceAbstraction, useClass: PasswordRepromptService },
|
||||
NativeMessagingService,
|
||||
|
Loading…
Reference in New Issue
Block a user