diff --git a/import.js b/import.js index c2e9dee..696b2b8 100644 --- a/import.js +++ b/import.js @@ -119,6 +119,8 @@ function searchExists (type, url) { var attr = srcByType(type), list = document.getElementsByTagName(tagByType(type)); + if (url.indexOf('://') == -1) + url = window.location.protocol + '//' + window.location.host + url for (var i=0; i