From 9820204a5bf3654a7c061ad625037ccd9b2ed6c6 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Thu, 3 Mar 2016 13:28:26 +0000 Subject: [PATCH] Trim the address/password because people are idiots --- js/connection.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/connection.js b/js/connection.js index 28f2db8..30aea0f 100644 --- a/js/connection.js +++ b/js/connection.js @@ -15,6 +15,9 @@ function ConnectionController( $scope, rconService, $routeParams, $timeout ) $scope.Connect = function () { + $scope.Address = $scope.Address.trim(); + $scope.Password = $scope.Password.trim(); + $scope.LastErrorMessage = null; rconService.Connect( $scope.Address, $scope.Password ); }