Skip to content

Commit

Permalink
Simplified as per sbc100's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
cwoffenden committed Feb 16, 2024
1 parent e16fa49 commit bc6562e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library_html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ var LibraryHTML5 = {
var uiEvent = JSEvents.uiEvent;
#endif
// e.detail is seen as undefined
{{{ makeSetValue('uiEvent', C_STRUCTS.EmscriptenUiEvent.detail, '(typeof e.detail !== "undefined") ? e.detail : 0', 'i32') }}};
{{{ makeSetValue('uiEvent', C_STRUCTS.EmscriptenUiEvent.detail, 'e.detail || 0', 'i32') }}};
{{{ makeSetValue('uiEvent', C_STRUCTS.EmscriptenUiEvent.documentBodyClientWidth, 'b.clientWidth', 'i32') }}};
{{{ makeSetValue('uiEvent', C_STRUCTS.EmscriptenUiEvent.documentBodyClientHeight, 'b.clientHeight', 'i32') }}};
{{{ makeSetValue('uiEvent', C_STRUCTS.EmscriptenUiEvent.windowInnerWidth, 'innerWidth', 'i32') }}};
Expand Down

0 comments on commit bc6562e

Please sign in to comment.