From the previous programmer got the code
function setupForWidth(mql) { if(mql.matches) { menu.classList.remove('hidden'); document.querySelector('body').classList.remove('mod-position-f') } else { menu.classList.add('hidden'); bodyPosition(menu, 'hidden'); } } var mql = window.matchMedia("screen and (min-width: 768px)"); if(menu) { mql.addListener(setupForWidth); setupForWidth(mql) } it all hangs on DOMContentLoaded
And in all browsers except Android Browser works correctly. The Android browser ignores the condition and runs the else option always ... help me figure it out ...
Orby.ru website When opening from an android device through a native browser, the menu overrides everything.