frontend: new parameters to setup kind of notifications allowed
This commit is contained in:
parent
24989c4cfa
commit
ef35879dde
4 changed files with 141 additions and 15 deletions
|
@ -133,8 +133,8 @@ angular.module("FICApp")
|
|||
angular.module("FICApp")
|
||||
.controller("CountdownController", function($scope, $rootScope, $interval) {
|
||||
var time;
|
||||
if (sessionStorage.userService)
|
||||
time = angular.fromJson(sessionStorage.userService);
|
||||
if (sessionStorage.time)
|
||||
time = angular.fromJson(sessionStorage.time);
|
||||
|
||||
$scope.time = {};
|
||||
|
||||
|
@ -149,7 +149,7 @@ angular.module("FICApp")
|
|||
"cu": Math.floor(response.headers("x-fic-time") * 1000),
|
||||
"he": (new Date()).getTime(),
|
||||
};
|
||||
sessionStorage.userService = angular.toJson(time);
|
||||
sessionStorage.time = angular.toJson(time);
|
||||
return time;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue