mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: show console error instead warning for error!
(#654)
This commit is contained in:
parent
29fb1842a5
commit
d291cdb968
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ pub fn console_error(s: &str) {
|
|||
if is_server() {
|
||||
eprintln!("{s}");
|
||||
} else {
|
||||
web_sys::console::warn_1(&JsValue::from_str(s));
|
||||
web_sys::console::error_1(&JsValue::from_str(s));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue