cleanup + git commit info

This commit is contained in:
Simon Gardling
2022-02-24 20:47:15 -05:00
parent 1ddc3774a1
commit 6f8a7c9cc2
7 changed files with 51 additions and 50 deletions

View File

@@ -23,7 +23,7 @@ extern "C" {
#[cfg(target_arch = "wasm32")]
#[wasm_bindgen]
pub fn start(canvas_id: &str) -> Result<(), wasm_bindgen::JsValue> {
pub fn start(canvas_id: &str, commit: &str) -> Result<(), wasm_bindgen::JsValue> {
log("Initializing...");
// See performance in browser profiler!
@@ -39,6 +39,6 @@ pub fn start(canvas_id: &str) -> Result<(), wasm_bindgen::JsValue> {
log("Finished initializing!");
log("Starting App...");
let app = egui_app::MathApp::default();
let app = egui_app::MathApp::new(commit.to_string());
eframe::start_web(canvas_id, Box::new(app))
}