@martyalicante @a5mith  hopefully finally fixed :)
This commit is contained in:
psychobunny
2015-11-02 11:16:31 -05:00
parent ca1e4bd328
commit 0be363d220
2 changed files with 34 additions and 20 deletions

View File

@@ -237,6 +237,10 @@
return ((nua.indexOf('Mozilla/5.0') > -1 && nua.indexOf('Android ') > -1 && nua.indexOf('AppleWebKit') > -1) && !(nua.indexOf('Chrome') > -1));
},
isTouchDevice: function() {
return 'ontouchstart' in document.documentElement;
},
findBootstrapEnvironment: function() {
//http://stackoverflow.com/questions/14441456/how-to-detect-which-device-view-youre-on-using-twitter-bootstrap-api
var envs = ['xs', 'sm', 'md', 'lg'],