diff --git a/add-on/_locales/en/messages.json b/add-on/_locales/en/messages.json index 15fd0ce58..eedd2cf99 100644 --- a/add-on/_locales/en/messages.json +++ b/add-on/_locales/en/messages.json @@ -16,7 +16,7 @@ "description": "Label for an external IPFS node" }, "panel_headerIpfsNodeExternalTitle": { - "message": "Connect to an IPFS node over http", + "message": "Connect to an IPFS node over HTTP", "description": "Label for an external IPFS node" }, "panel_statusGatewayAddress": { @@ -36,7 +36,7 @@ "description": "A label in Node status section of Browser Action pop-up" }, "panel_statusSwarmPeersTitle": { - "message": "The number of other ipfs nodes you can connect to", + "message": "The number of other IPFS nodes you can connect to", "description": "A label tool-tip in Node status section of Browser Action pop-up" }, "panel_quickUpload": { @@ -161,7 +161,7 @@ "description": "An option title on the Preferences screen" }, "option_ipfsNodeType_description": { - "message": "External: Connect to an IPFS daemon over http. \n\n Embedded: Run an IPFS node in your browser via ipfs-js *Experimental*", + "message": "External: Connect to an IPFS daemon over HTTP. \n\n Embedded: Run an IPFS node in your browser via ipfs-js *Experimental*", "description": "An option description on the Preferences screen" }, "option_ipfsNodeType_external": { diff --git a/add-on/src/lib/ipfs-companion.js b/add-on/src/lib/ipfs-companion.js index 8e2381c0e..7d0ef10e1 100644 --- a/add-on/src/lib/ipfs-companion.js +++ b/add-on/src/lib/ipfs-companion.js @@ -65,11 +65,12 @@ module.exports = async function init () { browser.tabs.onActivated.addListener(onActivatedTab) browser.runtime.onMessage.addListener(onRuntimeMessage) browser.runtime.onConnect.addListener(onRuntimeConnect) + // browser.protocol exists only in Brave if (browser.protocol && browser.protocol.registerStringProtocol) { console.log(`[ipfs-companion] registerStringProtocol available. Adding ipfs:// handler`) browser.protocol.registerStringProtocol('ipfs', createIpfsUrlProtocolHandler(() => ipfs)) } else { - console.log(`[ipfs-companion] registerStringProtocol not available`, browser.protocol) + console.log(`[ipfs-companion] registerStringProtocol not available, native protocol will not be registered`, browser.protocol) } } diff --git a/add-on/src/lib/mime-sniff.js b/add-on/src/lib/mime-sniff.js index a3babbb70..cc068ec5a 100644 --- a/add-on/src/lib/mime-sniff.js +++ b/add-on/src/lib/mime-sniff.js @@ -4,7 +4,7 @@ const isSvg = require('is-svg') const mime = require('mime-types') /* - * A quikc, best effort mime sniffing fn, via: + * A quick, best effort mime sniffing fn, via: * @see https://github.com/sindresorhus/file-type * @see https://github.com/sindresorhus/is-svg * @see https://github.com/bitinn/doc-sniff