show panics in the toast in wasm (#4582)
This commit is contained in:
1 parent
165447a647
commit
74163984be
7 files changed
+68
-12
No files matched your search
@@ -14,6 +14,7 @@ use wasm_bindgen::JsCast as _;
|
||||
/// ```
|
||||
pub struct Config {
|
||||
pub(crate) hydrate: bool,
|
||||
pub(crate) panic_hook: bool,
|
||||
pub(crate) root: ConfigRoot,
|
||||
#[cfg(feature = "document")]
|
||||
pub(crate) history: Option<Rc<dyn dioxus_history::History>>,
|
||||
@@ -96,6 +97,7 @@ impl Default for Config {
|
||||
root: ConfigRoot::RootName("main".to_string()),
|
||||
#[cfg(feature = "document")]
|
||||
history: None,
|
||||
panic_hook: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user