diff --git a/src/webview/webkitgtk/mod.rs b/src/webview/webkitgtk/mod.rs index ea8e70257..c9328ee73 100644 --- a/src/webview/webkitgtk/mod.rs +++ b/src/webview/webkitgtk/mod.rs @@ -85,6 +85,7 @@ impl InnerWebView { w.id().hash(&mut hasher); hasher.finish().to_string() }; + // Connect before registering as recommended by the docs manager.connect_script_message_received(None, move |_m, msg| { #[cfg(feature = "tracing")]