kopia lustrzana https://gitlab.com/rysiekpl/libresilient
ipns-ipfs plugin: handling lack of IPFS
rodzic
2f639112af
commit
83ece2adb2
|
@ -65,23 +65,27 @@
|
|||
doImport(
|
||||
"./lib/ipfs.js");
|
||||
console.log('(COMMIT_UNKNOWN) Setting up IPFS...')
|
||||
ipfs = await self.Ipfs.create({
|
||||
config: {
|
||||
dht: {
|
||||
enabled: true,
|
||||
clientMode: true
|
||||
}
|
||||
},
|
||||
libp2p: {
|
||||
try {
|
||||
ipfs = await self.Ipfs.create({
|
||||
config: {
|
||||
dht: {
|
||||
enabled: true,
|
||||
clientMode: true
|
||||
}
|
||||
},
|
||||
libp2p: {
|
||||
config: {
|
||||
dht: {
|
||||
enabled: true,
|
||||
clientMode: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
console.log('+-- IPFS loaded :: ipfs is : ' + typeof ipfs)
|
||||
});
|
||||
console.log('+-- IPFS loaded :: ipfs is : ' + typeof ipfs)
|
||||
} catch(e) {
|
||||
console.error('+-- Error loading IPFS: ' + e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue