normalize url

This commit is contained in:
Luke 2015-06-07 15:13:44 -04:00
parent 723d7e4485
commit 5f45adbf56

View file

@ -964,6 +964,9 @@
function normalizeAddress(address) {
// attempt to correct bad input
address = address.trim();
if (address.toLowerCase().indexOf('http') != 0) {
address = "http://" + address;
}