mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +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}");
|
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) => {
|
Eval(code) => {
|
||||||
if let Err(e) = webview.evaluate_script(code.as_str()) {
|
if let Err(e) = webview.evaluate_script(code.as_str()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue