fix: disable app quit on browser build

This commit is contained in:
2025-08-07 23:44:26 -05:00
parent adfa2cc737
commit 2ae73c3c58

View File

@@ -92,6 +92,8 @@ impl App<'_> {
} }
_ => {} _ => {}
}, },
// It doesn't really make sense to have this available in the browser
#[cfg(not(target_os = "emscripten"))]
Event::Quit { .. } Event::Quit { .. }
| Event::KeyDown { | Event::KeyDown {
keycode: Some(Keycode::Escape) | Some(Keycode::Q), keycode: Some(Keycode::Escape) | Some(Keycode::Q),