Explorar o código

fix: enable desktop devtol

Jonathan Kelley %!s(int64=3) %!d(string=hai) anos
pai
achega
7ce34ad97e
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      packages/desktop/src/lib.rs

+ 4 - 0
packages/desktop/src/lib.rs

@@ -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());
             }