Global.evalURL (url) |
function checks if url is correct
if not it assumes that http is the protocol |
Sourcecode in Global/objectFunctions.js:
1: function evalURL(url) { 2: if (!url || url.contains("://") || url.contains("mailto:")) 3: return url; 4: if (url.contains("@")) 5: return "mailto:" + url; 6: else 7: return "http://" + url; 8: } |