Skip to content
Snippets Groups Projects
Unverified Commit d851d2e0 authored by Julius Härtl's avatar Julius Härtl
Browse files

Only do regular polling of storage statistics if session_keepalive is enabled


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent 48bdd322
No related branches found
No related tags found
No related merge requests found
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
setTimeout(Files.displayStorageWarnings, 100); setTimeout(Files.displayStorageWarnings, 100);
// only possible at the moment if user is logged in or the files app is loaded // only possible at the moment if user is logged in or the files app is loaded
if (OC.currentUser && OCA.Files.App) { if (OC.currentUser && OCA.Files.App && OC.config.session_keepalive) {
// start on load - we ask the server every 5 minutes // start on load - we ask the server every 5 minutes
var func = _.bind(OCA.Files.App.fileList.updateStorageStatistics, OCA.Files.App.fileList); var func = _.bind(OCA.Files.App.fileList.updateStorageStatistics, OCA.Files.App.fileList);
var updateStorageStatisticsInterval = 5*60*1000; var updateStorageStatisticsInterval = 5*60*1000;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment