diff --git a/examples/browser/example.js b/examples/browser/example.js index b9de405..80997f7 100644 --- a/examples/browser/example.js +++ b/examples/browser/example.js @@ -1,5 +1,5 @@ const creatures = [ - '🐙', '🐷', '🐬', '🐞', + '🐙', '🐷', '🐬', '🐞', '🐈', '🙉', '🐸', '🐓', '🐊', '🕷', '🐠', '🐘', '🐼', '🐰', '🐶', '🐥' @@ -19,7 +19,7 @@ const readonlyCheckbox = document.getElementById("readonly") function handleError(e) { console.error(e.stack) - statusElm.innerHTML = e.message + statusElm.innerHTML = e.message } const main = (IPFS, ORBITDB) => { @@ -48,7 +48,7 @@ const main = (IPFS, ORBITDB) => { const ipfs = new Ipfs({ repo: '/orbitdb/examples/browser/new/ipfs/0.33.1', start: true, - preload: { + preload: { enabled: false }, EXPERIMENTAL: { @@ -151,16 +151,16 @@ const main = (IPFS, ORBITDB) => { db = await orbitdb.open(name, { // If database doesn't exist, create it - create: true, + create: true, overwrite: true, - // Load only the local version of the database, + // Load only the local version of the database, // don't load the latest from the network yet localOnly: false, type: type, // If "Public" flag is set, allow anyone to write to the database, // otherwise only the creator of the database can write accessController: { - write: publicAccess ? ['*'] : [orbitdb.identity.publicKey], + write: publicAccess ? ['*'] : [orbitdb.identity.id], } })