Skip to content

Commit

Permalink
fix(mv3): 🚨 Fix Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
whizzzkid committed Mar 24, 2023
1 parent f2c678b commit bc07aa9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion add-on/src/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ browser.runtime.setUninstallURL(getUninstallURL(browser))
const init = async () => {
await createIpfsCompanion()
}
init();

init()
6 changes: 3 additions & 3 deletions add-on/src/lib/ipfs-companion.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default async function init (windowedContext = false) {
throw new Error('IPFS Companion: API client is disabled')
}

function registerListeners() {
function registerListeners () {
const onBeforeSendInfoSpec = ['requestHeaders']
if (browser.webRequest.OnBeforeSendHeadersOptions && 'EXTRA_HEADERS' in browser.webRequest.OnBeforeSendHeadersOptions) {
// Chrome 72+ requires 'extraHeaders' for accessing all headers
Expand Down Expand Up @@ -263,7 +263,7 @@ export default async function init (windowedContext = false) {
}, 0)
}
}
info.currentDnslinkFqdn =await dnslinkResolver.findDNSLinkHostname(url)
info.currentDnslinkFqdn = await dnslinkResolver.findDNSLinkHostname(url)
info.currentFqdn = info.currentDnslinkFqdn || safeHostname(url)
info.currentTabIntegrationsOptOut = !state.activeIntegrations(info.currentFqdn)
info.isRedirectContext = info.currentFqdn && ipfsPathValidator.isRedirectPageActionsContext(url)
Expand Down Expand Up @@ -517,7 +517,7 @@ export default async function init (windowedContext = false) {
// Try SVG first -- Firefox supports it natively
await browser.action.setIcon(iconDefinition)
if (browser.runtime.lastError.message === 'Icon invalid.') {
throw browser.runtime.lastError
throw browser.runtime.lastError
}
} catch (error) {
// Fallback!
Expand Down
2 changes: 1 addition & 1 deletion add-on/src/recovery/recovery.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import choo from 'choo'
import html from 'choo/html/index.js'
import browser, { i18n, runtime } from 'webextension-polyfill'
import { i18n, runtime } from 'webextension-polyfill'
import { nodeOffSvg } from '../landing-pages/welcome/page.js'
import createWelcomePageStore from '../landing-pages/welcome/store.js'
import { optionsPage } from '../lib/constants.js'
Expand Down

0 comments on commit bc07aa9

Please sign in to comment.