pub fn on_error(f: impl FnMut(Event) + 'static) -> EventCallback
Add a error event handler at the window level.
error
This only has an effect on WASM targets.