Skip to content

Commit

Permalink
Correct JavaScript syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaobrien authored Jan 2, 2025
1 parent 63b0106 commit cf011a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openrct2-ui/Ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<IContext> context;
Expand Down

0 comments on commit cf011a6

Please sign in to comment.