mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-24 06:52:29 +00:00
Fixed example code in Guide.md
Fixed await operator outside of async function.
This commit is contained in:
parent
1db381d5de
commit
6c75c0ee86
2
GUIDE.md
2
GUIDE.md
@ -68,7 +68,7 @@ const ipfsOptions = {
|
|||||||
// Create IPFS instance
|
// Create IPFS instance
|
||||||
const ipfs = new IPFS(ipfsOptions)
|
const ipfs = new IPFS(ipfsOptions)
|
||||||
|
|
||||||
ipfs.on('ready', () => {
|
ipfs.on('ready', async () => {
|
||||||
// Create OrbitDB instance
|
// Create OrbitDB instance
|
||||||
const orbitdb = await OrbitDB.createInstance(ipfs)
|
const orbitdb = await OrbitDB.createInstance(ipfs)
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user