Skip to content
This repository was archived by the owner on Aug 9, 2021. It is now read-only.

Commit d010570

Browse files
authored
Merge pull request #914 from 3box/fix/ipfs-datastore-key-not-found
Fix/ipfs datastore key not found
2 parents dcbde39 + 3c17a11 commit d010570

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/3box.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,13 @@ async function initIPFSRepo (iframeCache) {
630630
ipfsRootPath = 'ipfs/root/' + sessionID
631631
const levelInstance = new LevelStore(ipfsRootPath)
632632

633+
const ipfsDatastorePath = 'ipfs/datastore' // path name level-js-ipfs/datastore
634+
const levelDatastore = new LevelStore(ipfsDatastorePath)
635+
633636
repoOpts = {
634637
storageBackends: {
635-
root: () => levelInstance
638+
root: () => levelInstance,
639+
datastore: () => levelDatastore
636640
}
637641
}
638642

0 commit comments

Comments
 (0)