diff --git a/src/oscar/UI/imgui_impl_sdl2.cpp b/src/oscar/UI/imgui_impl_sdl2.cpp index f9988f18b0..41faeaa403 100644 --- a/src/oscar/UI/imgui_impl_sdl2.cpp +++ b/src/oscar/UI/imgui_impl_sdl2.cpp @@ -446,6 +446,10 @@ bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event) return false; } +#ifdef __EMSCRIPTEN__ +EM_JS(void, ImGui_ImplSDL2_EmscriptenOpenURL, (char const* url), { url = url ? UTF8ToString(url) : null; if (url) window.open(url, '_blank'); }); +#endif + static bool ImGui_ImplSDL2_Init(SDL_Window* window, SDL_Renderer* renderer, void* sdl_gl_context) { ImGuiIO& io = ImGui::GetIO();