fix: add eval script failed log
This commit is contained in:
1 parent
b7e9dca87c
commit
8aadeff9d2
1 file changed
+2
-1
@@ -195,7 +195,8 @@ pub(super) fn handler(
|
|||||||
|
|
||||||
Eval(code) => {
|
Eval(code) => {
|
||||||
if let Err(e) = webview.evaluate_script(code.as_str()) {
|
if let Err(e) = webview.evaluate_script(code.as_str()) {
|
||||||
log::error!("Eval script error: {e}");
|
// we can't panic this error.
|
||||||
|
log::warn!("Eval script error: {e}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user