Loading…
The egui app has crashed.
${handle.panic_message()}
See the console for details.
Reload the page to try again. `; } else { let delay_ms = 1000; setTimeout(check_for_panic, delay_ms); } } check_for_panic(); handle.start(document.getElementById("the_canvas_id")).then(on_app_started).catch(on_error); } function on_app_started(handle) { // Call `handle.destroy()` to stop. Uncomment to quick result: // setTimeout(() => { handle.destroy(); handle.free()) }, 2000) console.debug("App started."); document.getElementById("center_text").innerHTML = ''; // Make sure the canvas is focused so it can receive keyboard events right away: document.getElementById("the_canvas_id").focus(); } function on_error(error) { console.error("Failed to start: " + error); document.getElementById("the_canvas_id").remove(); document.getElementById("center_text").innerHTML = `
An error occurred during loading:
${error}
Make sure you use a modern browser with WebGL and WASM enabled. `; }