From ad279dc566bbba4b4f7f00c7371fd09bbc31753f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 30 Oct 2018 16:05:44 +0100 Subject: [PATCH] correctly check for crypto being present --- src/sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync.js b/src/sync.js index 76122874b..1ce75ba82 100644 --- a/src/sync.js +++ b/src/sync.js @@ -516,7 +516,7 @@ SyncApi.prototype.sync = function() { console.warn("InvalidStoreError: store is not usable: stopping sync."); return; } - if (this.opts.lazyLoadMembers && this._crypto) { + if (this.opts.lazyLoadMembers && this.opts.crypto) { this.opts.crypto.enableLazyLoading(); } await this.client._storeClientOptions();