1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

getDomain moved to jslib

This commit is contained in:
Kyle Spearrin
2018-10-13 22:52:49 -04:00
parent 9320d73c99
commit 48a0b84bfe
7 changed files with 18 additions and 90 deletions

View File

@@ -200,7 +200,7 @@ export default class RuntimeBackground {
continue;
}
const tabDomain = this.platformUtilsService.getDomain(tab.url);
const tabDomain = Utils.getDomain(tab.url);
if (tabDomain != null && tabDomain !== queueMessage.domain) {
continue;
}
@@ -235,7 +235,7 @@ export default class RuntimeBackground {
continue;
}
const tabDomain = this.platformUtilsService.getDomain(tab.url);
const tabDomain = Utils.getDomain(tab.url);
if (tabDomain != null && tabDomain !== queueMessage.domain) {
continue;
}
@@ -264,7 +264,7 @@ export default class RuntimeBackground {
continue;
}
const tabDomain = this.platformUtilsService.getDomain(tab.url);
const tabDomain = Utils.getDomain(tab.url);
if (tabDomain != null && tabDomain !== queueMessage.domain) {
continue;
}
@@ -278,7 +278,7 @@ export default class RuntimeBackground {
}
private async addLogin(loginInfo: any, tab: any) {
const loginDomain = this.platformUtilsService.getDomain(loginInfo.url);
const loginDomain = Utils.getDomain(loginInfo.url);
if (loginDomain == null) {
return;
}
@@ -314,7 +314,7 @@ export default class RuntimeBackground {
}
private async changedPassword(changeData: any, tab: any) {
const loginDomain = this.platformUtilsService.getDomain(changeData.url);
const loginDomain = Utils.getDomain(changeData.url);
if (loginDomain == null) {
return;
}