mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
Fix browser compatibility
This commit is contained in:
@@ -10,8 +10,16 @@
|
||||
minified distribution builds (in '../lib')
|
||||
*/
|
||||
|
||||
const IPFS = require('ipfs')
|
||||
const OrbitDB = require('../../../src/OrbitDB')
|
||||
// Import IPFS module
|
||||
import IPFS from 'ipfs'
|
||||
|
||||
// Import OrbitDB module from 'orbit-db', eg. directory to its package.json
|
||||
import OrbitDB from '../../..'
|
||||
|
||||
// When 'orbit-db' was installed from npm, use with:
|
||||
// import OrbitDB from 'orbit-db'
|
||||
|
||||
// Example main code
|
||||
const example = require('../example')
|
||||
|
||||
// Call the start function and pass in the
|
||||
|
||||
Reference in New Issue
Block a user