From c335156be5744df22622b318f43f09e8622b97d3 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Wed, 22 Oct 2014 16:28:44 +0400 Subject: [PATCH] Fixed mobile detect --- app/js/lib/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/lib/config.js b/app/js/lib/config.js index b4078f24..93bb1001 100644 --- a/app/js/lib/config.js +++ b/app/js/lib/config.js @@ -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 = {