diff --git a/js/glowingbear.js b/js/glowingbear.js index 0babf57..b2a192c 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -675,20 +675,20 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', $scope.showSidebar = !$scope.showSidebar; } }; - + $scope.openNick = function() { if (document.body.clientWidth < $scope.mobile_cutoff) { - if($scope.nonicklist) { + if($scope.nonicklist) { $scope.nonicklist = false; - } + } } }; $scope.closeNick = function() { if (document.body.clientWidth < $scope.mobile_cutoff) { - if(!$scope.nonicklist) { + if(!$scope.nonicklist) { $scope.nonicklist = true; - } + } } }; diff --git a/js/plugins.js b/js/plugins.js index 63420a3..8e8c0df 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -279,7 +279,7 @@ plugins.factory('userPlugins', function() { } }); asciinemaPlugin.name = "ascii cast"; - + return { plugins: [youtubePlugin, dailymotionPlugin, allocinePlugin, imagePlugin, spotifyPlugin, cloudmusicPlugin, googlemapPlugin, asciinemaPlugin] }; diff --git a/js/websockets.js b/js/websockets.js index 3e49781..598da14 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -3,10 +3,10 @@ var websockets = angular.module('ngWebsockets', []); websockets.factory('ngWebsockets', ['$rootScope','$q', function($rootScope, $q) { - + this.protocol = null; - + var ws = null; var callbacks = {}; var currentCallBackId = 0; @@ -24,7 +24,7 @@ function($rootScope, $q) { }; - + /* * Returns the current callback id */