frontend: fix undefined variable
This commit is contained in:
parent
6be7ba09a5
commit
41f815f54d
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ angular.module("FICApp")
|
||||||
$scope.time = {};
|
$scope.time = {};
|
||||||
|
|
||||||
$rootScope.getSrvTime = function() {
|
$rootScope.getSrvTime = function() {
|
||||||
if (time.cu && time.he)
|
if (time && time.cu && time.he)
|
||||||
return new Date(Date.now() + (time.cu - time.he));
|
return new Date(Date.now() + (time.cu - time.he));
|
||||||
else
|
else
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|
Reference in a new issue