Fix browser compatibility

This commit is contained in:
haad
2017-12-13 14:48:34 +01:00
parent ed5d8b0a0e
commit 81284c1b16
10 changed files with 442 additions and 479 deletions

View File

@@ -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