Fix problem when http:// contains upper case
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user