feat: open devtool on dev
This commit is contained in:
@@ -36,6 +36,8 @@ async fn main() {
|
|||||||
.hidden_title(true)
|
.hidden_title(true)
|
||||||
.initialization_script(&preload)
|
.initialization_script(&preload)
|
||||||
.build()?;
|
.build()?;
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
|
_window.open_devtools();
|
||||||
Ok(())
|
Ok(())
|
||||||
})
|
})
|
||||||
.invoke_handler(commands::invoke_handler())
|
.invoke_handler(commands::invoke_handler())
|
||||||
|
|||||||
Reference in New Issue
Block a user