diff --git a/dev/js/main/header/header.js b/dev/js/main/header/header.js index 9f46b42..6ff296c 100644 --- a/dev/js/main/header/header.js +++ b/dev/js/main/header/header.js @@ -2,6 +2,7 @@ // Global variables (jshint): /*global touchSupport*/ +/*global isAndroid*/ // ================================= jQuery(function($) { @@ -22,11 +23,13 @@ jQuery(function($) { if ($html.hasClass('mobile-menu-opened')) { $html.removeClass('mobile-menu-opened'); } - if ($(window).width() < 992 && !$html.hasClass('mobile-menu-opened')) { + + if (isAndroid && screen.width < 992 && !$html.hasClass('mobile-menu-opened')) { + $('.js__navigation__items-wrp').hide(); + } else if (!isAndroid /* or with 'isIOS' variable instead of '!isAndroid' */ && $(window).width() < 992 && !$html.hasClass('mobile-menu-opened')) { $('.js__navigation__items-wrp').hide(); } else { $('.js__navigation__items-wrp').show(); - } };