diff --git a/composables/useCapacitor.js b/composables/useCapacitor.js index 64ec2be..1e4c198 100644 --- a/composables/useCapacitor.js +++ b/composables/useCapacitor.js @@ -2,6 +2,8 @@ import {Capacitor} from "@capacitor/core"; import {Device} from "@capacitor/device"; import {Network} from "@capacitor/network"; +const override = false + export const useCapacitor = () => { const getPlatform = () => { return Capacitor.getPlatform() @@ -14,11 +16,11 @@ export const useCapacitor = () => { const getIsPhone = async () => { let deviceInfo = await useCapacitor().getDeviceInfo() - return deviceInfo.model.toLowerCase().includes('iphone') + return override || deviceInfo.model.toLowerCase().includes('iphone') } const getIsNative = () => { - return Capacitor.isNativePlatform() + return override || Capacitor.isNativePlatform() } const getNetworkStatus = async () => {