diff --git a/src/core/window.rs b/src/core/window.rs index da182e0..632a1c5 100644 --- a/src/core/window.rs +++ b/src/core/window.rs @@ -17,6 +17,7 @@ pub async fn run() { { // Winit prevents sizing with CSS, so we have to set // the size manually when on web. + // https://github.com/rust-windowing/winit/pull/2074 use winit::dpi::PhysicalSize; window.set_inner_size(PhysicalSize::new(1920, 1080)); diff --git a/src/lib.rs b/src/lib.rs index 6f1283f..0bc75ad 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,7 @@ pub fn run() { #[cfg(target_arch = "wasm32")] { std::panic::set_hook(Box::new(console_error_panic_hook::hook)); - console_log::init_with_level(log::Level::Info).expect("Couldn't initialize logger"); + console_log::init().expect("Couldn't initialize logger"); wasm_bindgen_futures::spawn_local(core::window::run()); } #[cfg(not(target_arch = "wasm32"))]