mirror of
https://github.com/nextcloud/passman.git
synced 2024-09-20 23:06:24 +08:00
Add http protocol if its missing
This commit is contained in:
parent
925897b8ee
commit
9ddbf40cce
|
@ -67,7 +67,9 @@
|
|||
}
|
||||
if (regex.test(scope.value)) {
|
||||
scope.isLink = true;
|
||||
|
||||
if(scope.value.substr(0,4) !== 'http'){
|
||||
scope.value = 'http://'+scope.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue