From 4e706a8caffb64a32e17669891988c65831365da Mon Sep 17 00:00:00 2001 From: augmentedmode Date: Wed, 16 Oct 2024 00:52:31 -0400 Subject: [PATCH] chore: cleanup comments --- src/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 02f8313..62d981b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -192,22 +192,19 @@ function start() { // To know when the event listener has been added, to mitigate an e2e race condition continueLink.setAttribute('data-testid', 'unsafe-continue-loaded'); - // Add event listener for portfolio link (replacement for back-to-safety) const portfolioLink = document.getElementById('portfolio-link'); if (!portfolioLink) { throw new Error('Unable to locate portfolio link'); } portfolioLink.addEventListener('click', async () => { - // Write to phishingSafelistStream as before phishingSafelistStream.write({ jsonrpc: '2.0', - method: 'backToSafetyPhishingWarning', // Keeping method name consistent + method: 'backToSafetyPhishingWarning', params: [], id: createRandomId(), }); - // Redirect to MetaMask portfolio window.location.href = 'https://portfolio.metamask.io/?metamaskEntry=phishing_page_portfolio_button&marketingEnabled=true'; });