From d0aa248db00a010e16e8da48c6097ffb490d5043 Mon Sep 17 00:00:00 2001 From: haad Date: Wed, 18 May 2016 17:52:37 +0200 Subject: [PATCH] Fix subscribe option in OrbitDB --- src/OrbitDB.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrbitDB.js b/src/OrbitDB.js index 2e87517..b544ce7 100644 --- a/src/OrbitDB.js +++ b/src/OrbitDB.js @@ -45,7 +45,7 @@ class OrbitDB { _createStore(Store, dbname, options) { if(!options) options = {}; - const replicate = options.subscribe ? options.subscribe : true; + const replicate = options.subscribe !== undefined ? options.subscribe : true; const store = new Store(this._ipfs, this.user.username, dbname, options); this.stores[dbname] = store; return this._subscribe(store, dbname, replicate);