How to have a functionality work only on a web-browser and not on the iphone / android?


#1

how to have a functionality work only on a web-browser and not on the iphone / android ?


#2

yiu can check if cordova is available . some thing like

if (window.cordova) {
// running on device/emulator
} else {
// running in dev mode
}