mirror of
https://github.com/nextcloud/server.git
synced 2026-03-29 13:53:55 -04:00
Merge pull request #19999 from nextcloud/backport/19987/stable18
[stable18] Only do regular polling of storage statistics if session_keepalive is enabled
This commit is contained in:
commit
2c1de970bb
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@
|
|||
setTimeout(Files.displayStorageWarnings, 100);
|
||||
|
||||
// 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
|
||||
var func = _.bind(OCA.Files.App.fileList.updateStorageStatistics, OCA.Files.App.fileList);
|
||||
var updateStorageStatisticsInterval = 5*60*1000;
|
||||
|
|
|
|||
Loading…
Reference in a new issue