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