diff --git a/src/main.rs b/src/main.rs index 3467a33..264aa70 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,6 +13,17 @@ fn main() { }); let webview = WebView::new(); + webview.connect_load_changed(|_, load_event| { + eprintln!("Loaded: {load_event:?}"); + }); + webview.connect_load_failed(|_, load_event, failing_uri, error| { + eprintln!( + "Load failed: {load_event:?} while loading {failing_uri} - {}", + error.message() + ); + false + }); + window.add(&webview); window.show_all(); @@ -25,7 +36,10 @@ fn main() { .build() .unwrap() .block_on(async { - sender.send("https://kitchen.pyrocufflink.blue/").await.unwrap(); + sender + .send("https://kitchen.pyrocufflink.blue/") + .await + .unwrap(); }) }); glib::spawn_future_local(async move {