Revert "make manifest fix more future proof"

This reverts commit 32591b35d0.
This commit is contained in:
Moka 2024-10-27 20:57:27 +01:00
parent 32591b35d0
commit 06ad6c094a

View File

@ -99,16 +99,13 @@ const startGame = async (manifest?: any) => {
} }
}; };
let manifest: any;
fetch("/manifest.json") fetch("/manifest.json")
.then(res => res.json()) .then(res => res.json())
.then(jsonResponse => { .then(jsonResponse => {
manifest = jsonResponse.manifest; startGame(jsonResponse.manifest);
}).catch(err => { }).catch(() => {
// Manifest not found (likely local build or error path on live) // Manifest not found (likely local build)
console.log(`Manifest not found. ${err}`); startGame();
}).finally(() => {
startGame(manifest);
}); });
export default game; export default game;