mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 19:23:52 +00:00
convert background to main.background.ts
This commit is contained in:
@@ -4,7 +4,7 @@ import { UtilsService } from '../../../services/abstractions/utils.service';
|
||||
function getBackgroundService<T>(service: string) {
|
||||
return (): T => {
|
||||
const page = chrome.extension.getBackgroundPage();
|
||||
return page ? page['bg_' + service] as T : null;
|
||||
return page ? page.bg_main[service] as T : null;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user