egui: eframe-app-creation-refactor

This commit is contained in:
Simon Gardling
2022-03-15 19:07:14 -04:00
parent 5e9dc18469
commit 5d5b959f0d
4 changed files with 14 additions and 19 deletions

View File

@@ -27,8 +27,7 @@ cfg_if::cfg_if! {
log_helper("Finished initializing!");
log_helper("Starting App...");
let app = egui_app::MathApp::default();
eframe::start_web("canvas", Box::new(app))
eframe::start_web("canvas", |cc| Box::new(egui_app::MathApp::new(cc)))
}
}
}