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")
.then(res => res.json())
.then(jsonResponse => {
manifest = jsonResponse.manifest;
}).catch(err => {
// Manifest not found (likely local build or error path on live)
console.log(`Manifest not found. ${err}`);
}).finally(() => {
startGame(manifest);
startGame(jsonResponse.manifest);
}).catch(() => {
// Manifest not found (likely local build)
startGame();
});
export default game;