diff --git a/app/ts/background/accessManagement.ts b/app/ts/background/accessManagement.ts
index 31b27924..5c6948fb 100644
--- a/app/ts/background/accessManagement.ts
+++ b/app/ts/background/accessManagement.ts
@@ -110,7 +110,7 @@ function getAddressesThatDoNotNeedIndividualAccesses(activeAddressEntries: Addre
export async function setInterceptorDisabledForWebsite(website: Website, interceptorDisabled: boolean) {
return await updateWebsiteAccess((previousWebsiteAccess) => {
const index = previousWebsiteAccess.findIndex((entry) => entry.website.websiteOrigin === website.websiteOrigin)
- const previousAccess = index !== -1 ? previousWebsiteAccess[index] : undefined;
+ const previousAccess = index !== -1 ? previousWebsiteAccess[index] : undefined
if (previousAccess === undefined) return [...previousWebsiteAccess, { website, addressAccess: [], interceptorDisabled } ]
return replaceElementInReadonlyArray(previousWebsiteAccess, index, { ...previousAccess, interceptorDisabled })
})
diff --git a/app/ts/background/background.ts b/app/ts/background/background.ts
index 240885ab..b3cfc692 100644
--- a/app/ts/background/background.ts
+++ b/app/ts/background/background.ts
@@ -365,10 +365,10 @@ export async function refreshConfirmTransactionSimulation(
...transactionToSimulate.transaction,
nonce: lastNonceFixed.preSimulationTransaction.signedTransaction.nonce,
} }
- : { error: {
- ...transactionToSimulate.error,
- decodedErrorMessage: decodeEthereumError(availableAbis, transactionToSimulate.error).reason
- } }
+ : { error: {
+ ...transactionToSimulate.error,
+ decodedErrorMessage: decodeEthereumError(availableAbis, transactionToSimulate.error).reason
+ } }
}
}
}
diff --git a/app/ts/background/iconHandler.ts b/app/ts/background/iconHandler.ts
index b4ca2da5..2bcbddd7 100644
--- a/app/ts/background/iconHandler.ts
+++ b/app/ts/background/iconHandler.ts
@@ -36,7 +36,7 @@ export async function updateExtensionIcon(websiteTabConnections: WebsiteTabConne
return setIcon(ICON_ACCESS_DENIED, `The access to ${ activeAddress.name } for ${ websiteOrigin } has been DENIED!`)
}
if (settings.simulationMode) return setIcon(ICON_SIMULATING, 'The Interceptor simulates your sent transactions.')
- if (settings.currentRpcNetwork.httpsRpc === undefined) return setIcon(ICON_SIGNING_NOT_SUPPORTED, `The Interceptor is disabled while it's on an unsupported network`)
+ if (settings.currentRpcNetwork.httpsRpc === undefined) return setIcon(ICON_SIGNING_NOT_SUPPORTED, 'The Interceptor is disabled while it\'s on an unsupported network')
const tabState = await getTabState(tabId)
return setIcon(ICON_SIGNING, `The Interceptor forwards your transactions to ${ getPrettySignerName(tabState.signerName) } once sent.`)
}
diff --git a/app/ts/background/messageSending.ts b/app/ts/background/messageSending.ts
index 3ef5e2fe..cb170a08 100644
--- a/app/ts/background/messageSending.ts
+++ b/app/ts/background/messageSending.ts
@@ -1,8 +1,8 @@
-import { InterceptedRequestForward, InterceptorMessageToInpage, SubscriptionReplyOrCallBack } from "../types/interceptor-messages.js"
-import { WebsiteSocket, checkAndPrintRuntimeLastError } from "../utils/requests.js"
-import { WebsiteTabConnections } from "../types/user-interface-types.js"
-import { websiteSocketToString } from "./backgroundUtils.js"
-import { serialize } from "../types/wire-types.js"
+import { InterceptedRequestForward, InterceptorMessageToInpage, SubscriptionReplyOrCallBack } from '../types/interceptor-messages.js'
+import { WebsiteSocket, checkAndPrintRuntimeLastError } from '../utils/requests.js'
+import { WebsiteTabConnections } from '../types/user-interface-types.js'
+import { websiteSocketToString } from './backgroundUtils.js'
+import { serialize } from '../types/wire-types.js'
function postMessageToPortIfConnected(port: browser.runtime.Port, message: InterceptorMessageToInpage) {
try {
diff --git a/app/ts/background/sleeping.ts b/app/ts/background/sleeping.ts
index 3b12b9f5..918d98a7 100644
--- a/app/ts/background/sleeping.ts
+++ b/app/ts/background/sleeping.ts
@@ -1,10 +1,10 @@
-import { EthereumClientService } from "../simulation/services/EthereumClientService.js"
-import { TIME_BETWEEN_BLOCKS } from "../utils/constants.js"
-import { modifyObject } from "../utils/typescript.js"
-import { sendPopupMessageToOpenWindows } from "./backgroundUtils.js"
-import { updateExtensionBadge } from "./iconHandler.js"
-import { getInterceptorStartSleepingTimestamp, getRpcConnectionStatus, setInterceptorStartSleepingTimestamp, setRpcConnectionStatus } from "./storageVariables.js"
-import { isConfirmTransactionFocused } from "./windows/confirmTransaction.js"
+import { EthereumClientService } from '../simulation/services/EthereumClientService.js'
+import { TIME_BETWEEN_BLOCKS } from '../utils/constants.js'
+import { modifyObject } from '../utils/typescript.js'
+import { sendPopupMessageToOpenWindows } from './backgroundUtils.js'
+import { updateExtensionBadge } from './iconHandler.js'
+import { getInterceptorStartSleepingTimestamp, getRpcConnectionStatus, setInterceptorStartSleepingTimestamp, setRpcConnectionStatus } from './storageVariables.js'
+import { isConfirmTransactionFocused } from './windows/confirmTransaction.js'
const updateConnectionStatusRetry = async (ethereumClientService: EthereumClientService) => {
const status = await getRpcConnectionStatus()
diff --git a/app/ts/background/windows/personalSign.ts b/app/ts/background/windows/personalSign.ts
index 22197808..8fe5c8a1 100644
--- a/app/ts/background/windows/personalSign.ts
+++ b/app/ts/background/windows/personalSign.ts
@@ -19,7 +19,7 @@ async function addMetadataToOpenSeaOrder(ethereumClientService: EthereumClientSe
offerer: await identifyAddress(ethereumClientService, requestAbortController, openSeaOrder.offerer),
offer: await Promise.all(openSeaOrder.offer.map( async (offer) => ({ ...offer, token: await identifyAddress(ethereumClientService, requestAbortController, offer.token) }))),
consideration: await Promise.all(openSeaOrder.consideration.map(async (offer) => ({ ...offer, token: await identifyAddress(ethereumClientService, requestAbortController, offer.token), recipient: await identifyAddress(ethereumClientService, requestAbortController, offer.recipient) })))
- }
+ }
}
export async function craftPersonalSignPopupMessage(ethereumClientService: EthereumClientService, requestAbortController: AbortController | undefined, signedMessageTransaction: SignedMessageTransaction, rpcNetwork: RpcNetwork): Promise
- Change Active Address
+ Change Active Address
-
+
diff --git a/app/ts/components/pages/InterceptorAccessList.tsx b/app/ts/components/pages/InterceptorAccessList.tsx index 86ac6a25..86e5d2c4 100644 --- a/app/ts/components/pages/InterceptorAccessList.tsx +++ b/app/ts/components/pages/InterceptorAccessList.tsx @@ -227,7 +227,7 @@ export function InterceptorAccessList(param: InterceptorAccessListParams) {
{ `Forgot ${ access.websiteAccess.website.websiteOrigin }. `}
: diff --git a/app/ts/components/pages/WebsiteAccess.tsx b/app/ts/components/pages/WebsiteAccess.tsx index f3dae282..8df05cad 100644 --- a/app/ts/components/pages/WebsiteAccess.tsx +++ b/app/ts/components/pages/WebsiteAccess.tsx @@ -40,7 +40,7 @@ const WebsiteAccessProvider = ({ children }: { children: ComponentChildren }) => retrieveWebsiteAccess({ query: searchQuery.value }) } - const listenForPopupMessages = () => { + const listenForPopupMessages = () => { const popupMessageListener = async (msg: unknown) => { const maybeParsed = MessageToPopup.safeParse(msg) if (!maybeParsed.success) return // not a message we are interested in @@ -177,8 +177,8 @@ const WebsiteSettingsList = () => { const selectedWebsiteOrigin = formData.get(URL_HASH_KEY)?.toString() if (!selectedWebsiteOrigin) { - window.location.href = window.location.pathname - return + window.location.href = window.location.pathname + return } window.location.href = `${ window.location.pathname }${ URL_HASH_PREFIX }${ selectedWebsiteOrigin }` @@ -276,7 +276,7 @@ const WebsiteSettingsDetail = () => {