1
0
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:
Emil Ernerfeldt
2021-03-31 23:12:42 +02:00
parent 1f965d16a2
commit f6770f0183
13 changed files with 36 additions and 34 deletions

View File

@@ -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>