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

[PM-13312] Task scheduler loses event callback reference when popout opens (#11492)

* [PM-13312] Task scheduler loses event callback reference when popout opens

* [PM-13312] Task scheduler loses event callback reference when popout opens
This commit is contained in:
Cesar Gonzalez 2024-10-10 15:53:33 -05:00 committed by GitHub
parent 14d71e7408
commit c221efd09a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -563,8 +563,14 @@ const safeProviders: SafeProvider[] = [
}),
safeProvider({
provide: ForegroundTaskSchedulerService,
useFactory: getBgService<ForegroundTaskSchedulerService>("taskSchedulerService"),
deps: [],
useFactory: (logService: LogService, stateProvider: StateProvider) => {
if (needsBackgroundInit) {
return getBgService<ForegroundTaskSchedulerService>("taskSchedulerService")();
}
return new ForegroundTaskSchedulerService(logService, stateProvider);
},
deps: [LogService, StateProvider],
}),
safeProvider({
provide: AnonLayoutWrapperDataService,