mirror of
https://github.com/bitwarden/browser
synced 2025-12-29 22:53:44 +00:00
view login info/styles
This commit is contained in:
@@ -71,7 +71,23 @@ export class DesktopPlatformUtilsService implements PlatformUtilsService {
|
||||
}
|
||||
|
||||
getDomain(uriString: string): string {
|
||||
return uriString;
|
||||
if (uriString == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
uriString = uriString.trim();
|
||||
if (uriString === '') {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (uriString.indexOf('://') > -1) {
|
||||
try {
|
||||
const url = new URL(uriString);
|
||||
return url.hostname;
|
||||
} catch (e) { }
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
isViewOpen(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user