fixed console error

This commit is contained in:
John Mitchell
2015-10-14 18:18:41 -04:00
parent b45534859f
commit 4049a2cfa4

View File

@@ -992,7 +992,7 @@ var tower = angular.module('Tower', [
if (next.templateUrl !== (urlPrefix + 'login/loginBackDrop.partial.html')) { if (next.templateUrl !== (urlPrefix + 'login/loginBackDrop.partial.html')) {
$location.path('/login'); $location.path('/login');
} }
} else if ($rootScope.sessionTimer.isExpired()) { } else if ($rootScope && $rootScope.sessionTimer && $rootScope.sessionTimer.isExpired()) {
// gets here on timeout // gets here on timeout
if (next.templateUrl !== (urlPrefix + 'login/loginBackDrop.partial.html')) { if (next.templateUrl !== (urlPrefix + 'login/loginBackDrop.partial.html')) {
$rootScope.sessionTimer.expireSession('idle'); $rootScope.sessionTimer.expireSession('idle');