Skip to content

Commit

Permalink
Merge pull request #1446 from tomivm/fix/check-isIos-in-lower-cases
Browse files Browse the repository at this point in the history
compare window.cordova.platformId to a lower case string for isIOS
  • Loading branch information
RodriSanchez1 authored Apr 10, 2023
2 parents 6eaba24 + 57212f1 commit 5343814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cordova-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const isAndroid = () =>
export const isElectron = () =>
isCordova() && window.cordova.platformId === 'electron';

export const isIOS = () => isCordova() && window.cordova.platformId === 'iOS';
export const isIOS = () => isCordova() && window.cordova.platformId === 'ios';

export const onCordovaReady = onReady =>
document.addEventListener('deviceready', onReady, false);
Expand Down

0 comments on commit 5343814

Please sign in to comment.