diff --git a/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 b/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 index 9ec933bcd..e00b17581 100644 --- a/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 +++ b/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 @@ -1,4 +1,6 @@ import computed from 'ember-addons/ember-computed-decorators'; +import mobile from 'discourse/lib/mobile'; + export default Ember.Component.extend({ classNames: ['hamburger-panel'], @@ -68,7 +70,7 @@ export default Ember.Component.extend({ this.sendAction('showKeyboardAction'); }, toggleMobileView() { - this.site.toggleMobileView(); + mobile.toggleMobileView(); } } });