diff options
Diffstat (limited to 'src/services/PollingBackend.js')
-rw-r--r-- | src/services/PollingBackend.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/services/PollingBackend.js b/src/services/PollingBackend.js index 9101e3ded..09cfc728f 100644 --- a/src/services/PollingBackend.js +++ b/src/services/PollingBackend.js @@ -175,8 +175,8 @@ class PollingBackend { return } this.lock = true - let sendable = (typeof _sendable === 'function') ? _sendable() : _sendable - let steps = sendable.steps + const sendable = (typeof _sendable === 'function') ? _sendable() : _sendable + const steps = sendable.steps axios.post(endpointUrl('session/push', !!this._authority.options.shareToken), { documentId: this._authority.document.id, sessionId: this._authority.session.id, @@ -240,7 +240,7 @@ class PollingBackend { } carefulRetry() { - let newRetry = this.retryTime ? Math.min(this.retryTime * 2, MAX_PUSH_RETRY) : MIN_PUSH_RETRY + const newRetry = this.retryTime ? Math.min(this.retryTime * 2, MAX_PUSH_RETRY) : MIN_PUSH_RETRY if (newRetry > WARNING_PUSH_RETRY && this.retryTime < WARNING_PUSH_RETRY) { OC.Notification.showTemporary('Changes could not be sent yet') this._authority.emit('error', ERROR_TYPE.PUSH_FAILURE, {}) |