guacamole-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mjum...@apache.org
Subject [12/23] incubator-guacamole-client git commit: GUACAMOLE-204: If is not a function; fix style around location redirect
Date Mon, 22 May 2017 03:29:07 GMT
GUACAMOLE-204: If is not a function; fix style around location redirect


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/48baa521
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/48baa521
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/48baa521

Branch: refs/heads/master
Commit: 48baa5211e9eeba7f34026807638c806d2fc0b92
Parents: c591a58
Author: Nick Couchman <vnick@apache.org>
Authored: Fri Feb 10 13:21:53 2017 -0500
Committer: Nick Couchman <nick.couchman@yahoo.com>
Committed: Wed May 17 08:54:21 2017 -0400

----------------------------------------------------------------------
 extensions/guacamole-auth-cas/src/main/resources/casConfig.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/48baa521/extensions/guacamole-auth-cas/src/main/resources/casConfig.js
----------------------------------------------------------------------
diff --git a/extensions/guacamole-auth-cas/src/main/resources/casConfig.js b/extensions/guacamole-auth-cas/src/main/resources/casConfig.js
index 79e5698..77b0cbb 100644
--- a/extensions/guacamole-auth-cas/src/main/resources/casConfig.js
+++ b/extensions/guacamole-auth-cas/src/main/resources/casConfig.js
@@ -42,10 +42,10 @@ angular.module('index').config(['$routeProvider',
     var curPath = window.location.href;
     var ticketPos = curPath.indexOf("?ticket=") + 8;
     var hashPos = curPath.indexOf("#/");
-    if(ticketPos > 0 && ticketPos < hashPos) {
+    if (ticketPos > 0 && ticketPos < hashPos) {
         var ticket = curPath.substring(ticketPos, hashPos);
         var newPath = curPath.substring(0,ticketPos - 8) + '#/?ticket=' + ticket;
-        window.location=newPath;
+        window.location = newPath;
     }
 
 }]);


Mime
View raw message