From bb9f35905648759333dc037f3bfa85aa236e3fce Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Thu, 22 Aug 2024 02:48:59 +0300 Subject: [PATCH] Update src/webview/webkitgtk/mod.rs --- src/webview/webkitgtk/mod.rs | 1 + 1 file changed, 1 insertion(+) 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")]