Browse Source

Enable mobile version for small windows as well

Closes #475
master
Igor Zhukov 10 years ago
parent
commit
68b33f2268
  1. 4
      app/js/init.js

4
app/js/init.js

@ -99,7 +99,9 @@ @@ -99,7 +99,9 @@
switch (layout) {
case 'mobile': Config.Mobile = true; break;
case 'desktop': Config.Mobile = false; break;
default: Config.Mobile = Config.Navigator.mobile; break;
default:
Config.Mobile = Config.Navigator.mobile || $(window).width() < 480;
break;
}
$('head').append(
'<link rel="stylesheet" href="css/' + (Config.Mobile ? 'mobile.css' : 'desktop.css') + '" />'

Loading…
Cancel
Save