diff --git a/core/os/os_js.odin b/core/os/os_js.odin index 8bf1d988b..348554728 100644 --- a/core/os/os_js.odin +++ b/core/os/os_js.odin @@ -1,8 +1,6 @@ #+build js package os -import "base:runtime" - foreign import "odin_env" @(require_results) diff --git a/vendor/wasm/js/dom.odin b/vendor/wasm/js/dom.odin index 28dd32fed..ffc58a9a3 100644 --- a/vendor/wasm/js/dom.odin +++ b/vendor/wasm/js/dom.odin @@ -90,4 +90,4 @@ window_get_scroll :: proc "contextless" () -> (x, y: f64) { scroll: [2]f64 _window_get_scroll(&scroll) return scroll.x, scroll.y -} +} \ No newline at end of file diff --git a/vendor/wasm/js/events.odin b/vendor/wasm/js/events.odin index 258776fff..5a63da8ef 100644 --- a/vendor/wasm/js/events.odin +++ b/vendor/wasm/js/events.odin @@ -336,9 +336,6 @@ remove_custom_event_listener :: proc(id: string, name: string, user_data: rawptr return _remove_event_listener(id, name, user_data, callback) } -import "core:fmt" - - @(export, link_name="odin_dom_do_event_callback") do_event_callback :: proc(user_data: rawptr, callback: proc(e: Event)) { @(default_calling_convention="contextless")