Better ipfs handling and default configs
This commit is contained in:
@@ -4,6 +4,9 @@ const multihashes = require('multihashes');
|
||||
class IPFS {
|
||||
|
||||
constructor(config) {
|
||||
if (!config) {
|
||||
config = {host: 'localhost', port: '5001', protocol: 'http'};
|
||||
}
|
||||
this._ipfsAPI = ipfsAPI(config);
|
||||
this._config = config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user