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:
parent
14d71e7408
commit
c221efd09a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user