mirror of
https://github.com/bitwarden/browser.git
synced 2024-08-26 23:09:46 +02:00
add http protocol if none fiven
This commit is contained in:
parent
f205a9cc9f
commit
0d80216921
|
@ -151,6 +151,10 @@ export class UtilsService implements UtilsServiceAbstraction {
|
|||
return null;
|
||||
}
|
||||
|
||||
if (uriString.indexOf('://') === -1) {
|
||||
uriString = 'http://' + uriString;
|
||||
}
|
||||
|
||||
if (uriString.startsWith('http://') || uriString.startsWith('https://')) {
|
||||
try {
|
||||
return new URL(uriString);
|
||||
|
|
Loading…
Reference in New Issue
Block a user