From 80eeda1c8c52b4c5ad07666260657007f62f2fc3 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Sun, 25 Oct 2015 18:32:54 -0700 Subject: [PATCH] removing stale code to make atom happy :) --- .../src/login/authenticationServices/timer.factory.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/awx/ui/client/src/login/authenticationServices/timer.factory.js b/awx/ui/client/src/login/authenticationServices/timer.factory.js index d315ee50aa..7e39c93502 100644 --- a/awx/ui/client/src/login/authenticationServices/timer.factory.js +++ b/awx/ui/client/src/login/authenticationServices/timer.factory.js @@ -71,7 +71,6 @@ export default }, expireSession: function (reason) { - var x; if(reason === 'session_limit'){ $rootScope.sessionLimitExpired = true; $rootScope.sessionExpired = false; @@ -90,15 +89,15 @@ export default var tm, t, x, y; tm = ($AnsibleConfig.session_timeout) ? $AnsibleConfig.session_timeout : 1800; t = new Date().getTime() + (tm * 1000); - x = new Object({ + x = { time: t, loggedIn: true - }); + }; if(Store('sessionTime')){ y = Store('sessionTime'); } else { - y = new Object(); + y = {}; } y[$rootScope.current_user.id] = x; Store('sessionTime' , y);