Skip to content

Commit

Permalink
Merge pull request #660 from SUI-Components/feat/sui-app-minor-ajustm…
Browse files Browse the repository at this point in the history
…ents

feat(components/tool/app): Add cookies and getPlatform methods to sui…
  • Loading branch information
oegea committed Apr 30, 2024
2 parents 7fd8085 + 1149943 commit 0c517c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/tool/app/src/core.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import {App} from '@capacitor/app'
import {Capacitor, CapacitorHttp} from '@capacitor/core'
import {Capacitor, CapacitorCookies, CapacitorHttp} from '@capacitor/core'

export const isNative = () => Capacitor.isNativePlatform()
export const getApp = () => App
export const getHttp = () => CapacitorHttp
export const getPlatform = () => Capacitor.getPlatform()
export const isNative = () => Capacitor.isNativePlatform()
export const setCookie = async props => CapacitorCookies.setCookie(props)

0 comments on commit 0c517c1

Please sign in to comment.