fix: extension does not get injected on page load (#1486)

This commit is contained in:
Tiến Nguyễn Khắc 2024-12-05 01:41:48 +13:00 committed by GitHub
parent 4d6fbc778a
commit a4292d827b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}`));