improved git commit fetching

This commit is contained in:
Simon Gardling
2022-02-24 21:12:50 -05:00
parent 6f8a7c9cc2
commit ee2936dfc4
6 changed files with 27 additions and 28 deletions

View File

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