normalize url
This commit is contained in:
parent
723d7e4485
commit
5f45adbf56
1 changed files with 3 additions and 0 deletions
|
@ -964,6 +964,9 @@
|
|||
|
||||
function normalizeAddress(address) {
|
||||
|
||||
// attempt to correct bad input
|
||||
address = address.trim();
|
||||
|
||||
if (address.toLowerCase().indexOf('http') != 0) {
|
||||
address = "http://" + address;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue