File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,5 @@ browser.runtime.setUninstallURL(getUninstallURL(browser))
1313const init = async ( ) => {
1414 await createIpfsCompanion ( )
1515}
16- init ( ) ;
16+
17+ init ( )
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export default async function init (windowedContext = false) {
108108 throw new Error ( 'IPFS Companion: API client is disabled' )
109109 }
110110
111- function registerListeners ( ) {
111+ function registerListeners ( ) {
112112 const onBeforeSendInfoSpec = [ 'requestHeaders' ]
113113 if ( browser . webRequest . OnBeforeSendHeadersOptions && 'EXTRA_HEADERS' in browser . webRequest . OnBeforeSendHeadersOptions ) {
114114 // Chrome 72+ requires 'extraHeaders' for accessing all headers
@@ -263,7 +263,7 @@ export default async function init (windowedContext = false) {
263263 } , 0 )
264264 }
265265 }
266- info . currentDnslinkFqdn = await dnslinkResolver . findDNSLinkHostname ( url )
266+ info . currentDnslinkFqdn = await dnslinkResolver . findDNSLinkHostname ( url )
267267 info . currentFqdn = info . currentDnslinkFqdn || safeHostname ( url )
268268 info . currentTabIntegrationsOptOut = ! state . activeIntegrations ( info . currentFqdn )
269269 info . isRedirectContext = info . currentFqdn && ipfsPathValidator . isRedirectPageActionsContext ( url )
@@ -517,7 +517,7 @@ export default async function init (windowedContext = false) {
517517 // Try SVG first -- Firefox supports it natively
518518 await browser . action . setIcon ( iconDefinition )
519519 if ( browser . runtime . lastError . message === 'Icon invalid.' ) {
520- throw browser . runtime . lastError
520+ throw browser . runtime . lastError
521521 }
522522 } catch ( error ) {
523523 // Fallback!
Original file line number Diff line number Diff line change 33
44import choo from 'choo'
55import html from 'choo/html/index.js'
6- import browser , { i18n , runtime } from 'webextension-polyfill'
6+ import { i18n , runtime } from 'webextension-polyfill'
77import { nodeOffSvg } from '../landing-pages/welcome/page.js'
88import createWelcomePageStore from '../landing-pages/welcome/store.js'
99import { optionsPage } from '../lib/constants.js'
You can’t perform that action at this time.
0 commit comments