# Pastebin 0oKOiARe const goOnline = (err) => { if(err) throw err; ipfs.goOnline(startApp); }; const loadIpfs = (err) => { if(err) throw err; ipfs.config.set("Bootstrap", [ '/ip4/54.152.65.230/tcp/4002/ws/ipfs/QmSnh2d7u4e8eTX7Uxhp8PZmvQEN2NDtYDysmkJJ3sBes9', '/ip4/178.62.158.247/tcp/80/ws/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd' ], (err) => { if (err) throw err; ipfs.load(goOnline); }); }; // sole.log).catch(console.log); ipfs._repo.exists((err, exists) => { if(err) throw err; if(exists) { loadIpfs() } else { ipfs.init({ emptyRepo: true, bits: 2048, log: console.log }, loadIpfs); } });