Skip to content

Commit

Permalink
Update src/scripts/OutSystems/OSUI/Utils/Menu.ts
Browse files Browse the repository at this point in the history
Co-authored-by: José Rio <jose.rio@hotmail.com>
  • Loading branch information
gnbm and joselrio authored Sep 24, 2024
1 parent 71b8ca1 commit 5a1e955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/OutSystems/OSUI/Utils/Menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace OutSystems.OSUI.Utils.Menu {

// OrientationChange handler
const _onOrientationChangeCallbackHandler = (callback: OSFramework.OSUI.GlobalCallbacks.Generic): void => {
if (callback) {
if (typeof callback === 'function') {
OSFramework.OSUI.Helper.ApplySetTimeOut(() => {
_onOrientationChangeCallback();
}, 300);
Expand Down

0 comments on commit 5a1e955

Please sign in to comment.