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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user