From 749965acae7434ba43baf89da87cd12f388d34b0 Mon Sep 17 00:00:00 2001 From: tomivm Date: Tue, 4 Apr 2023 14:39:17 -0300 Subject: [PATCH] Add isIOS function to cordova-util --- src/cordova-util.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cordova-util.js b/src/cordova-util.js index 4ee20bcb7..550aca8ed 100644 --- a/src/cordova-util.js +++ b/src/cordova-util.js @@ -6,6 +6,8 @@ export const isAndroid = () => export const isElectron = () => isCordova() && window.cordova.platformId === 'electron'; +export const isIOS = () => isCordova() && window.cordova.platformId === 'iOS'; + export const onCordovaReady = onReady => document.addEventListener('deviceready', onReady, false);