diff --git a/src/store/indexeddb.js b/src/store/indexeddb.js index 507c54b4d..402057591 100644 --- a/src/store/indexeddb.js +++ b/src/store/indexeddb.js @@ -146,7 +146,9 @@ IndexedDBStore.prototype.save = function() { const now = Date.now(); if (now - this._syncTs > WRITE_DELAY_MS) { this._syncTs = Date.now(); // set now to guard against multi-writes - return this.backend.syncToDatabase(this.getUsers()).catch((err) => {console.error("sync fail:", err);}); + return this.backend.syncToDatabase(this.getUsers()).catch((err) => { + console.error("sync fail:", err); + }); } return q(); };