fix: enable desktop devtol

This commit is contained in:
Jonathan Kelley committed 2022-02-18 23:22:35 -05:00
1 parent f3ad776430
commit 7ce34ad97e
1 file changed
+4
+4
View File
@@ -173,6 +173,10 @@ pub fn launch_with_props<P: 'static + Send>(
webview = webview.with_custom_protocol(name, handler)
}
if cfg!(debug_assertions) {
webview = webview.with_dev_tool(true);
}
desktop.webviews.insert(window_id, webview.build().unwrap());
}