Skip to content

Commit 774e5b9

Browse files
committed
Minor: moved braces
1 parent 961b739 commit 774e5b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/library_html5.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,12 +952,13 @@ var LibraryHTML5 = {
952952
orientationIndex = 1 << orientationIndex;
953953
}
954954
orientationAngle = screenOrientObj.angle;
955+
}
955956
#if MIN_SAFARI_VERSION < 0x100400
956-
} else {
957+
else {
957958
// fallback for Safari earlier than 16.4 (March 2023)
958959
orientationAngle = window.orientation;
959-
#endif
960960
}
961+
#endif
961962

962963
{{{ makeSetValue('eventStruct', C_STRUCTS.EmscriptenOrientationChangeEvent.orientationIndex, 'orientationIndex', 'i32') }}};
963964
{{{ makeSetValue('eventStruct', C_STRUCTS.EmscriptenOrientationChangeEvent.orientationAngle, 'orientationAngle', 'i32') }}};

0 commit comments

Comments
 (0)