mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Various spelling fixes, docs improvements and code cleanup
This commit is contained in:
@@ -65,10 +65,12 @@
|
||||
// Here we tell bindgen the path to the wasm file so it can start
|
||||
// initialization and return to us a promise when it's done.
|
||||
wasm_bindgen("./egui_demo_app_bg.wasm")
|
||||
.then(on_wasm_loaded)["catch"](console.error);
|
||||
.then(on_wasm_loaded)
|
||||
.catch(console.error);
|
||||
|
||||
function on_wasm_loaded() {
|
||||
// This call installs a bunch of callbacks and then returns.
|
||||
console.log("loaded wasm, starting egui app");
|
||||
wasm_bindgen.start("the_canvas_id");
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user