Commit 0efe5bf5 0efe5bf5223d334a7b18d8ad07faeebffee42fab by Nicolas Perriault

fixed utils.cleanUrl() with relative urls

1 parent 5f514cb7
...@@ -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');
......