Fix preload cachebust

This commit is contained in:
Varun Patil 2020-05-07 12:37:08 +05:30
parent fd6375e17d
commit 2de283af8e
1 changed files with 4 additions and 1 deletions

View File

@ -203,7 +203,10 @@
})
.then(function(jsonResponse) {
jsonResponse.forEach((f) => {
fetch('gameasync/' + f).then().catch();
const url = mapping[f.toLowerCase().replace(new RegExp("\\.[^/.]+$"), "")];
if (!url) return;
fetch('gameasync/' + url).then().catch();
});
});
};