diff --git a/components/tool/app/src/core.js b/components/tool/app/src/core.js index 6bd97412a..3abfc2f5f 100644 --- a/components/tool/app/src/core.js +++ b/components/tool/app/src/core.js @@ -4,8 +4,8 @@ import {Capacitor, CapacitorCookies, CapacitorHttp} from '@capacitor/core' export const getApp = () => App export const getHttp = () => CapacitorHttp export const getPlatform = () => Capacitor.getPlatform() -export const isIos = () => Capacitor.getPlatform() === 'ios' export const isAndroid = () => Capacitor.getPlatform() === 'android' -export const isWeb = () => Capacitor.getPlatform() === 'web' +export const isIos = () => Capacitor.getPlatform() === 'ios' export const isNative = () => Capacitor.isNativePlatform() +export const isWeb = () => Capacitor.getPlatform() === 'web' export const setCookie = async props => CapacitorCookies.setCookie(props)