mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-21 21:11:35 +01:00
check for existing protocol
This commit is contained in:
parent
e7464785e1
commit
f3f17138c8
@ -177,7 +177,7 @@ export class Utils {
|
||||
}
|
||||
|
||||
let httpUrl = uriString.startsWith('http://') || uriString.startsWith('https://');
|
||||
if (!httpUrl && Utils.tldEndingRegex.test(uriString)) {
|
||||
if (!httpUrl && uriString.indexOf('://') < 0 && Utils.tldEndingRegex.test(uriString)) {
|
||||
uriString = 'http://' + uriString;
|
||||
httpUrl = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user