From 177fa2cfa294d448df1e5acc8fb0efac01da8fb3 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Tue, 13 Dec 2016 13:11:01 -0500 Subject: [PATCH] Move file availability check interval to class member --- js/page/my_files.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/page/my_files.js b/js/page/my_files.js index 91b8ae3af..19cb5d152 100644 --- a/js/page/my_files.js +++ b/js/page/my_files.js @@ -166,6 +166,7 @@ var MyFilesRow = React.createClass({ var MyFilesPage = React.createClass({ _fileTimeout: null, + _fileInfoCheckRate: 300, _fileInfoCheckNum: 0, _filesOwnership: {}, @@ -233,7 +234,7 @@ var MyFilesPage = React.createClass({ } let newFilesAvailable; - if (!(this._fileInfoCheckNum % 300)) { + if (!(this._fileInfoCheckNum % this._fileInfoCheckRate)) { // Time to update file availability status newFilesAvailable = {};