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(){
OC.Router.registerLoadedCallback(function(){
var url = OC.Router.generate('heartbeat');
setInterval(function(){
var url = OC.Router.generate('heartbeat');
$.post(url);
}, 900000);
});