generate url only once
This commit is contained in:
parent
81bb4363a2
commit
a65b16f3e7
|
@ -824,8 +824,8 @@ OC.set=function(name, value) {
|
|||
*/
|
||||
function sessionHeartBeat(){
|
||||
OC.Router.registerLoadedCallback(function(){
|
||||
setInterval(function(){
|
||||
var url = OC.Router.generate('heartbeat');
|
||||
setInterval(function(){
|
||||
$.post(url);
|
||||
}, 900000);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue