From e1d2ee3e6087338d4046fb0d978830047a326616 Mon Sep 17 00:00:00 2001 From: Oriol Egea Date: Mon, 6 May 2024 16:42:45 +0200 Subject: [PATCH] refactor(components/tool/app): Reorder functions --- components/tool/app/src/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)