kopia lustrzana https://gitlab.com/rysiekpl/libresilient
dnslink-ipfs: minor improvements (ref. #61)
rodzic
51c3ec7b3c
commit
996953a10a
|
@ -108,9 +108,12 @@
|
|||
case 'ico':
|
||||
contentType = 'image/x-icon';
|
||||
break;
|
||||
case 'json':
|
||||
contentType = 'application/json';
|
||||
break;
|
||||
}
|
||||
console.log(" +-- guessed contentType : " + contentType);
|
||||
|
||||
LR.log(pluginName, " +-- guessed contentType : " + contentType);
|
||||
|
||||
// TODO: error handling!
|
||||
return ipfs.name.resolve('/ipns/' + dnslinkAddr).next().then(ipfsaddr => {
|
||||
|
||||
|
@ -176,7 +179,7 @@
|
|||
* TODO: to be implemented
|
||||
*/
|
||||
let publishContent = (resource, user, password) => {
|
||||
return new Error("Not implemented yet.")
|
||||
throw new Error("Not implemented yet.")
|
||||
}
|
||||
|
||||
/* ========================================================================= *\
|
||||
|
|
Ładowanie…
Reference in New Issue