forked from 0x2620/oxjs
load modules with Ox.VERSION in build mode to make caching work
This commit is contained in:
parent
0be0d5fbb7
commit
0588ebe211
3 changed files with 5 additions and 4 deletions
|
|
@ -96,7 +96,8 @@ Ox.getAsync = function(urls, get, callback) {
|
|||
var element, tagValue, typeValue, urlKey;
|
||||
if (!cache[url]) {
|
||||
if (!type) {
|
||||
type = url.split('.').pop();
|
||||
type = Ox.parseURL(url).pathname.split('.').pop();
|
||||
console.log(type, url);
|
||||
type = type == 'css' ? 'stylesheet'
|
||||
: type == 'js' ? 'script' : 'image';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue