From 2de283af8e0958cf42ae51825f37641bd1ea58d4 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 7 May 2020 12:37:08 +0530 Subject: [PATCH] Fix preload cachebust --- shell.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell.html b/shell.html index 7b4c94c..c99c4ce 100644 --- a/shell.html +++ b/shell.html @@ -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(); }); }); };