mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-10 02:07:55 -06:00
fix: disable app quit on browser build
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user