potential fix for nav menu bug on webkit

This commit is contained in:
2023-10-20 18:47:39 +02:00
parent 095567eb44
commit c6778bd251

View File

@@ -233,7 +233,7 @@ export default {
}
},
navMenu ( action ) {
if ( screen.width < 1300 ) {
if ( window.screen.width < 1300 ) {
if ( action === 'toggle' ) {
$( '.side-nav' ).toggle( 300 );
$( '.hideNav' ).toggleClass( 'navHidden' );