generate url only once

This commit is contained in:
Bernhard Posselt 2013-02-26 20:45:25 +01:00
parent 81bb4363a2
commit a65b16f3e7
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}); });