fix: extension does not get injected on page load (#1486)
This commit is contained in:
parent
4d6fbc778a
commit
a4292d827b
@ -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}`));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user