Fix clicking the bear on mobile

closes #469
This commit is contained in:
Lorenz Hübschle-Schneider 2014-10-16 16:32:53 +02:00
parent 967aac5dba
commit 66b48d83fb

View file

@ -273,7 +273,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
$rootScope.auto_display_embedded_content = $scope.noembed === false;
$scope.isSidebarVisible = function() {
return document.getElementById('sidebar').getAttribute('sidebar-state') === 'visible';
return document.getElementById('content').getAttribute('sidebar-state') === 'visible';
};
$scope.showSidebar = function() {