mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
Fix subscribe option in OrbitDB
This commit is contained in:
parent
d0da27194d
commit
d0aa248db0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user