Merge pull request #1941 from owncloud/session_heartbeat
generate url only once for heartbeat
This commit is contained in:
commit
aa8bf3bbaa
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue