Fixed mobile detect

Closes #589
This commit is contained in:
Igor Zhukov 2014-12-15 00:29:34 -08:00
parent 2fc88372ed
commit 8612cb6af3

View File

@ -42,7 +42,7 @@ Config.Navigator = {
retina: window.devicePixelRatio > 1, retina: window.devicePixelRatio > 1,
ffos: navigator.userAgent.search(/mobi.+Gecko/i) != -1, ffos: navigator.userAgent.search(/mobi.+Gecko/i) != -1,
touch: screen.width <= 768, touch: screen.width <= 768,
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 mobile: screen.width && 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 = { Config.I18n = {