From cf011a61405cbe454a023d106c5ec231faf5b574 Mon Sep 17 00:00:00 2001 From: Ethan O'Brien <77750390+ethanaobrien@users.noreply.github.com> Date: Thu, 2 Jan 2025 12:17:06 -0600 Subject: [PATCH] Correct JavaScript syntax --- src/openrct2-ui/Ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/Ui.cpp b/src/openrct2-ui/Ui.cpp index 3e32dd7270f7..02aaa23969f4 100644 --- a/src/openrct2-ui/Ui.cpp +++ b/src/openrct2-ui/Ui.cpp @@ -50,7 +50,7 @@ int main(int argc, const char** argv) #ifdef __EMSCRIPTEN__ MAIN_THREAD_EM_ASM({ specialHTMLTargets["!canvas"] = Module.canvas; - Module.canvas.addEventListener("contextmenu", (e) = > { e.preventDefault(); }); + Module.canvas.addEventListener("contextmenu", function(e) { e.preventDefault(); }); }); #endif std::unique_ptr context;