mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
Merge pull request #434 from CGQAQ/patch-1
fix(desktop): makes release build working
This commit is contained in:
commit
8349e252b6
1 changed files with 6 additions and 1 deletions
|
@ -212,7 +212,12 @@ pub(super) fn handler(
|
|||
log::warn!("Open print modal failed: {e}");
|
||||
}
|
||||
}
|
||||
DevTool => webview.open_devtools(),
|
||||
DevTool => {
|
||||
#[cfg(debug_assertions)]
|
||||
webview.open_devtools();
|
||||
#[cfg(not(debug_assertions))]
|
||||
log::warn!("Devtools are disabled in release builds");
|
||||
}
|
||||
|
||||
Eval(code) => {
|
||||
if let Err(e) = webview.evaluate_script(code.as_str()) {
|
||||
|
|
Loading…
Reference in a new issue