Skip to content

Commit

Permalink
fix: extension does not get injected on page load
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Dec 4, 2024
1 parent 4d6fbc7 commit a74fe93
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/extension/src/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,5 @@ window.addEventListener('message', ({ data, source }: Message): void => {
}
});

redirectIfPhishing().then((gotRedirected) => {
if (!gotRedirected) {
inject();
}
}).catch((e) => {
console.warn(`Unable to determine if the site is in the phishing list: ${(e as Error).message}`);
inject();
});
inject();
redirectIfPhishing().catch((e) => console.warn(`Unable to determine if the site is in the phishing list: ${(e as Error).message}`));

0 comments on commit a74fe93

Please sign in to comment.