Remove usage of `getBgService` (#8217)

This commit is contained in:
Matt Gibson 2024-03-07 19:43:19 -06:00 committed by GitHub
parent f83dcf2b24
commit 2d49a79854
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -237,8 +237,9 @@ function getBgService<T>(service: keyof MainBackground) {
},
{
provide: LogServiceAbstraction,
useFactory: getBgService<ConsoleLogService>("logService"),
deps: [],
useFactory: (platformUtilsService: PlatformUtilsService) =>
new ConsoleLogService(platformUtilsService.isDev()),
deps: [PlatformUtilsService],
},
{
provide: BrowserEnvironmentService,