mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Fix throwToEscapeEventLoop function
This commit is contained in:
parent
54b4074369
commit
7dabad4d71
|
@ -69,9 +69,9 @@ struct EventLoopRunner<T> {
|
|||
event_handler: Box<dyn FnMut(Event<T>, &mut ControlFlow)>,
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
#[wasm_bindgen(module = "/src/platform_impl/web_sys/util.js")]
|
||||
extern "C" {
|
||||
#[wasm_bindgen(module = "/src/platform_impl/web_sys/util.js", js_name = "throwToEscapeEventLoop")]
|
||||
#[wasm_bindgen(js_name = "throwToEscapeEventLoop")]
|
||||
fn throw_to_escape_event_loop();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
function throwToEscapeEventLoop() {
|
||||
export function throwToEscapeEventLoop() {
|
||||
throw "Using exceptions for control flow, don't mind me. This isn't actually an error!";
|
||||
}
|
Loading…
Reference in a new issue