From f634beffee001c6a15db53e84ff79bae94eed669 Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 11 Sep 2023 16:45:24 -0500 Subject: [PATCH] fix(wasm): remove unnecessary emscripten looping --- src/main.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/main.rs b/src/main.rs index dcbf5cd..d560c9d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,9 +8,6 @@ use tracing::event; use tracing_error::ErrorLayer; use tracing_subscriber::layer::SubscriberExt; -#[cfg(target_os = "emscripten")] -pub mod emscripten; - mod animation; mod constants; mod direction; @@ -149,14 +146,7 @@ pub fn main() { true }; - - #[cfg(target_os = "emscripten")] - use emscripten::emscripten; - - #[cfg(target_os = "emscripten")] - emscripten::set_main_loop_callback(main_loop); - - #[cfg(not(target_os = "emscripten"))] + loop { if !main_loop() { break;