mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-18 02:41:15 +02:00
only perpend http if there is no protocol
This commit is contained in:
parent
cca9c3c561
commit
859f44db43
@ -191,7 +191,7 @@
|
||||
|
||||
function fixUri(uri) {
|
||||
uri = uri.toLowerCase().trim();
|
||||
if (!uri.startsWith('http') && uri.indexOf('.') >= 0) {
|
||||
if (uri.indexOf('://') === -1 && uri.indexOf('.') >= 0) {
|
||||
uri = 'http://' + uri;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user