diff --git a/js/glowingbear.js b/js/glowingbear.js index 81cf25e..3bf6a3a 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -617,14 +617,14 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', } }); - $scope.showSidebar = true; - - $scope.buffers = models.model.buffers; - $rootScope.$on('relayDisconnect', function() { models.reinitialize(); }); + $scope.showSidebar = true; + + $scope.buffers = models.model.buffers; + $scope.activeBuffer = models.getActiveBuffer; $rootScope.waseverconnected = false;