mirror of
https://github.com/nextcloud/passman.git
synced 2025-02-26 08:24:00 +08:00
Add http protocol if its missing
This commit is contained in:
parent
925897b8ee
commit
9ddbf40cce
1 changed files with 3 additions and 1 deletions
|
@ -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