1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +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

@@ -120,7 +120,7 @@ class Cipher extends Domain {
model.subTitle = model.login.username;
if (model.login.uri) {
if (this.utilsService == null) {
this.utilsService = chrome.extension.getBackgroundPage().bg_utilsService as UtilsService;
this.utilsService = chrome.extension.getBackgroundPage().bg_main.utilsService as UtilsService;
}
model.login.domain = this.utilsService.getDomain(model.login.uri);

View File

@@ -95,7 +95,7 @@ class CipherString {
const self = this;
if (this.cryptoService == null) {
this.cryptoService = chrome.extension.getBackgroundPage().bg_cryptoService as CryptoService;
this.cryptoService = chrome.extension.getBackgroundPage().bg_main.cryptoService as CryptoService;
}
return this.cryptoService.getOrgKey(orgId).then((orgKey: any) => {