https://stackoverflow.com/questions/10347539/detect-between-a-mobile-browser-or-a-phonegap-application
Anonymous
When you must fail, fail noisily and as soon as possible.