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