diff options
-rw-r--r-- | core/js/js.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js index 2b3a9f04770..23d16b69234 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -979,7 +979,12 @@ function initCore() { }); // toggle the navigation on mobile - OC.registerMenu($('#header #owncloud'), $('#navigation')); + if (window.matchMedia) { + var mq = window.matchMedia('(max-width: 600px)'); + if (mq && mq.matches) { + OC.registerMenu($('#header #owncloud'), $('#navigation')); + } + } } $(document).ready(initCore); |