summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-02-26 20:45:25 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-02-26 20:45:25 +0100
commita65b16f3e75235882482e49eb603eeecf9431633 (patch)
tree81779393c39ae74f22053ba8c877f99dc47cdee5
parent81bb4363a2e9df22c12d06fc3df82a7ee947cb21 (diff)
downloadnextcloud-server-a65b16f3e75235882482e49eb603eeecf9431633.tar.gz
nextcloud-server-a65b16f3e75235882482e49eb603eeecf9431633.zip
generate url only once
-rw-r--r--core/js/js.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 4016f64d601..46dd273b068 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -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);
});