1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

refactor utils service to utils

This commit is contained in:
Kyle Spearrin
2018-04-23 13:03:47 -04:00
parent 5e7115f78d
commit 0fa9fc58eb
16 changed files with 168 additions and 250 deletions

View File

@@ -6,7 +6,7 @@ import { LoginUri } from '../domain/loginUri';
import { PlatformUtilsService } from '../../abstractions/platformUtils.service';
import { UtilsService } from '../../services/utils.service';
import { Utils } from '../../misc/utils';
export class LoginUriView implements View {
match: UriMatchType = null;
@@ -52,7 +52,7 @@ export class LoginUriView implements View {
get hostname(): string {
if (this._hostname == null && this.uri != null) {
this._hostname = UtilsService.getHostname(this.uri);
this._hostname = Utils.getHostname(this.uri);
if (this._hostname === '') {
this._hostname = null;
}