fixed utils.cleanUrl() with relative urls
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -68,7 +68,7 @@ exports.betterTypeOf = betterTypeOf; | ... | @@ -68,7 +68,7 @@ exports.betterTypeOf = betterTypeOf; |
68 | */ | 68 | */ |
69 | function cleanUrl(url) { | 69 | function cleanUrl(url) { |
70 | "use strict"; | 70 | "use strict"; |
71 | if (url.indexOf('/') === 0) { | 71 | if (url.toLowerCase().indexOf('http') !== 0) { |
72 | return url; | 72 | return url; |
73 | } | 73 | } |
74 | var a = document.createElement('a'); | 74 | var a = document.createElement('a'); | ... | ... |
-
Please register or sign in to post a comment