Simplified GetIsPhone Return
This commit is contained in:
@@ -14,13 +14,7 @@ export const useCapacitor = () => {
|
|||||||
const getIsPhone = async () => {
|
const getIsPhone = async () => {
|
||||||
let deviceInfo = await useCapacitor().getDeviceInfo()
|
let deviceInfo = await useCapacitor().getDeviceInfo()
|
||||||
|
|
||||||
/*if(deviceInfo.model.toLowerCase().includes('iphone')) {
|
return deviceInfo.model.toLowerCase().includes('iphone')
|
||||||
return true
|
|
||||||
} else {
|
|
||||||
return false
|
|
||||||
}*/
|
|
||||||
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const getNetworkStatus = async () => {
|
const getNetworkStatus = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user