iOS 7 stuff and platform testing

This commit is contained in:
Max Lynch
2013-09-23 18:35:27 -05:00
parent 4125f91daa
commit 136925f3b2
4 changed files with 19 additions and 2 deletions

View File

@ -25,7 +25,9 @@
// Check if we are running in Cordova, which will have
// window.device available.
isCordova: function() {
return 'device' in window;
return (window.cordova || window.PhoneGap || window.phonegap);
//&& /^file:\/{3}[^\/]/i.test(window.location.href)
//&& /ios|iphone|ipod|ipad|android/i.test(navigator.userAgent);
},
isIOS7: function() {
if(!window.device) {