Skip to content

Commit

Permalink
refactor(components/tool/app): Reorder functions
Browse files Browse the repository at this point in the history
  • Loading branch information
oegea committed May 6, 2024
1 parent 3d3550c commit e1d2ee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tool/app/src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit e1d2ee3

Please sign in to comment.