Fix problem when http:// contains upper case

This commit is contained in:
Gaël Métais
2015-02-06 10:50:36 +01:00
parent 0e4ffcee62
commit 928e8f14ea
+1 -1
View File
@@ -14,7 +14,7 @@ var yellowLabTools = function(url, options) {
} else {
if (url.indexOf('http://') !== 0 && url.indexOf('https://') !== 0) {
if (url.toLowerCase().indexOf('http://') !== 0 && url.toLowerCase().indexOf('https://') !== 0) {
url = 'http://' + url;
}