From 2ae73c3c58d7ee4a1e7916893535359e6307e497 Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 7 Aug 2025 23:44:26 -0500 Subject: [PATCH] fix: disable app quit on browser build --- src/app.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app.rs b/src/app.rs index 22feb8a..02b938f 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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::KeyDown { keycode: Some(Keycode::Escape) | Some(Keycode::Q),