# Pastebin W9ZNMYPW const loadIpfs = () => { console.log("load"); ipfs.load(goOnline); }; canarydb = window.indexedDB.open(repoName); let loadTimeout = setTimeout(loadIpfs, 250); // Create database if it doesn't exist canarydb.onupgradeneeded = function() { window.indexedDB.deleteDatabase(repoName); clearTimeout(loadTimeout); setTimeout(function() { console.log("init"); ipfs.init({ emptyRepo: true, bits: 2048 }, loadIpfs); }, 50); };