mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
only perpend http if there is no protocol
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user