This commit is contained in:
Simon Gardling
2022-03-01 00:55:13 -05:00
parent 5c38fe514f
commit 22070b93d7
4 changed files with 0 additions and 44 deletions

View File

@@ -37,11 +37,6 @@ pub fn start(canvas_id: &str) -> Result<(), wasm_bindgen::JsValue> {
// Used in order to hook into `panic!()` to log in the browser's console
log_helper("Initializing panic hooks...");
std::panic::set_hook(Box::new(|panic_info| {
web_sys::window()
.and_then(|window| window.document())
.and_then(|document| document.body())
.and_then(|element| element.set_attribute("data-panicked", "true").ok());
console_error_panic_hook::hook(panic_info);
}));
log_helper("Initialized panic hooks!");