Fix preload cachebust
This commit is contained in:
parent
fd6375e17d
commit
2de283af8e
|
@ -203,7 +203,10 @@
|
||||||
})
|
})
|
||||||
.then(function(jsonResponse) {
|
.then(function(jsonResponse) {
|
||||||
jsonResponse.forEach((f) => {
|
jsonResponse.forEach((f) => {
|
||||||
fetch('gameasync/' + f).then().catch();
|
const url = mapping[f.toLowerCase().replace(new RegExp("\\.[^/.]+$"), "")];
|
||||||
|
if (!url) return;
|
||||||
|
|
||||||
|
fetch('gameasync/' + url).then().catch();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue