We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ea62ee commit 8bb8a62Copy full SHA for 8bb8a62
add-on/src/lib/ipfs-client/external.js
@@ -7,7 +7,8 @@ exports.init = async function (opts) {
7
console.log('[ipfs-companion] External ipfs init', opts.apiURLString)
8
9
const url = opts.apiURL
10
- const api = IpfsApi({ host: url.hostname, port: url.port, procotol: url.protocol })
+ const protocol = url.protocol.substr(0, url.protocol.length - 1) // http: -> http
11
+ const api = IpfsApi({ host: url.hostname, port: url.port, protocol })
12
return api
13
}
14
0 commit comments