diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-26 20:45:25 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-26 20:45:25 +0100 |
commit | a65b16f3e75235882482e49eb603eeecf9431633 (patch) | |
tree | 81779393c39ae74f22053ba8c877f99dc47cdee5 | |
parent | 81bb4363a2e9df22c12d06fc3df82a7ee947cb21 (diff) | |
download | nextcloud-server-a65b16f3e75235882482e49eb603eeecf9431633.tar.gz nextcloud-server-a65b16f3e75235882482e49eb603eeecf9431633.zip |
generate url only once
-rw-r--r-- | core/js/js.js | 2 |
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); }); |