1
0
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:
Kyle Spearrin
2017-12-05 23:28:31 -05:00
parent 09f6b36bbb
commit e90476af2b
8 changed files with 515 additions and 1021 deletions

View File

@@ -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;
};
}