diff --git a/src/bin/notedeck.rs b/src/bin/notedeck.rs index e768f7a..d38af99 100644 --- a/src/bin/notedeck.rs +++ b/src/bin/notedeck.rs @@ -35,7 +35,7 @@ pub fn main() { eframe::start_web( "the_canvas_id", // hardcode it web_options, - Box::new(|_cc| Box::new(Damus::new())), + Box::new(|cc| Box::new(Damus::new(cc))), ) .await .expect("failed to start eframe"); diff --git a/src/lib.rs b/src/lib.rs index b96d561..39a3fb1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,6 +43,6 @@ pub async fn android_main(app: AndroidApp) { let res_ = eframe::run_native( "Damus NoteDeck", options, - Box::new(|_cc| Box::new(Damus::new())), + Box::new(|cc| Box::new(Damus::new(cc))), ); }