diff --git a/strafe-client/src/setup.rs b/strafe-client/src/setup.rs index a836473..3893644 100644 --- a/strafe-client/src/setup.rs +++ b/strafe-client/src/setup.rs @@ -32,6 +32,11 @@ fn create_window(title:&str,event_loop:&winit::event_loop::EventLoop<()>)->Resul use winit::platform::windows::WindowBuilderExtWindows; builder=builder.with_no_redirection_bitmap(true); } + #[cfg(target_arch="wasm32")] + { + use winit::platform::web::WindowAttributesExtWebSys; + attr=attr.with_append(true); + } event_loop.create_window(attr) } fn create_instance()->SetupContextPartial1{