From 6b4d2fddbb5859c2ef0ebdcbf133b21006daeffc Mon Sep 17 00:00:00 2001 From: David Cormier Date: Mon, 16 Jun 2014 22:53:39 -0400 Subject: [PATCH] Set port variable instead of placeholder Suggesting a port in the placeholder can be confusing, as it may lead people to believe that this value will be sent to the server while in fact it will not be. Fix #324 --- index.html | 2 +- js/glowingbear.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index ae19a80..cb0f9b6 100644 --- a/index.html +++ b/index.html @@ -64,7 +64,7 @@
- +
diff --git a/js/glowingbear.js b/js/glowingbear.js index 43f100f..3cdca23 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -519,6 +519,9 @@ function($rootScope, weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', '$log', 'models', 'connection', function ($rootScope, $scope, $store, $timeout, $log, models, connection) { + + $scope.port = 9001; + // From: http://stackoverflow.com/a/18539624 by StackOverflow user "plantian" $rootScope.countWatchers = function () { var q = [$rootScope], watchers = 0, scope;