Skip to content

Commit bc07aa9

Browse files
committed
fix(mv3): 🚨 Fix Lint
1 parent f2c678b commit bc07aa9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

add-on/src/background/background.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ browser.runtime.setUninstallURL(getUninstallURL(browser))
1313
const init = async () => {
1414
await createIpfsCompanion()
1515
}
16-
init();
16+
17+
init()

add-on/src/lib/ipfs-companion.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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!

add-on/src/recovery/recovery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import choo from 'choo'
55
import html from 'choo/html/index.js'
6-
import browser, { i18n, runtime } from 'webextension-polyfill'
6+
import { i18n, runtime } from 'webextension-polyfill'
77
import { nodeOffSvg } from '../landing-pages/welcome/page.js'
88
import createWelcomePageStore from '../landing-pages/welcome/store.js'
99
import { optionsPage } from '../lib/constants.js'

0 commit comments

Comments
 (0)