diff --git a/src/main.js b/src/main.js index 146ddadb..8d2cd05a 100644 --- a/src/main.js +++ b/src/main.js @@ -153,17 +153,17 @@ export default async () => { return state; }).catch((error) => { - console.error("fail: "+error); + console.error("Loading failed: "+ error); resourceLoader - .loadGltf(undefined,undefined) - .then((gltf) => { - state.gltf = gltf; - state.sceneIndex = 0 ; - state.cameraIndex = undefined; - - uiModel.exitLoadingState(); - redraw = true; - }); + .loadGltf(undefined, undefined) + .then((gltf) => { + state.gltf = gltf; + state.sceneIndex = 0; + state.cameraIndex = undefined; + + uiModel.exitLoadingState(); + redraw = true; + }); return state; }) );