From 8322bcf0c3992d88463c57c322981f0adaab8ca8 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 24 Feb 2016 14:21:07 +1100 Subject: [PATCH] FIX: switch to desktop not working --- .../javascripts/discourse/components/hamburger-menu.js.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 b/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 index 9ec933bcd69..e00b175819a 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(); } } });