update wasm example to use new `set_frame_size()`
I overlooked this in my last PR.
@@ -414,7 +414,7 @@ pub fn main_js() {
// It is very important to handle Resized event from window, because
// renderer knows nothing about window size - it must be notified
// directly when window size has changed.
- engine.renderer.set_frame_size(size.into());
+ engine.set_frame_size(size.into());
}
WindowEvent::KeyboardInput { input, .. } => {
// Handle key input events via `WindowEvent`, not via `DeviceEvent` (#32)
