aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/lib/security.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/security.js b/js/lib/security.js
index af02824a6..9c12f8586 100644
--- a/js/lib/security.js
+++ b/js/lib/security.js
@@ -101,7 +101,7 @@ elgg.security.addToken = function(data) {
elgg.security.init = function() {
// elgg.security.interval is set in the js/elgg PHP view.
- elgg.security.tokenRefreshTimer = setInterval(elgg.security.refreshToken, 60 * 1000);
+ elgg.security.tokenRefreshTimer = setInterval(elgg.security.refreshToken, elgg.security.interval);
};
elgg.register_hook_handler('boot', 'system', elgg.security.init); \ No newline at end of file