Browse Source

Fixed mobile detect

master
Igor Zhukov 10 years ago
parent
commit
c335156be5
  1. 2
      app/js/lib/config.js

2
app/js/lib/config.js

@ -38,7 +38,7 @@ Config.Navigator = { @@ -38,7 +38,7 @@ Config.Navigator = {
retina: window.devicePixelRatio > 1,
ffos: navigator.userAgent.search(/mobi.+Gecko/i) != -1,
touch: screen.width <= 768,
mobile: screen.width < 480
mobile: screen.width < 480 || navigator.userAgent.search(/iOS|iPhone OS|Android|BlackBerry|BB10|Series ?[64]0|J2ME|MIDP|opera mini|opera mobi|mobi.+Gecko|Windows Phone/i) != -1
};
Config.I18n = {

Loading…
Cancel
Save