diff --git a/apps/browser/src/phishing-detection/trigger-phishing-detection-script-injection.ts b/apps/browser/src/phishing-detection/trigger-phishing-detection-script-injection.ts index 167d76da7cc..90251eb13cd 100644 --- a/apps/browser/src/phishing-detection/trigger-phishing-detection-script-injection.ts +++ b/apps/browser/src/phishing-detection/trigger-phishing-detection-script-injection.ts @@ -15,11 +15,17 @@ if (document.readyState === "loading") { async function loadPhishingDetectionContent() { const activeUrl = PhishingDetectionBrowserService.getActiveUrl(); - const { isPhishingDomain } = await chrome.runtime.sendMessage({ + const response = await chrome.runtime.sendMessage({ command: PhishingDetectionCommands.CheckUrl, activeUrl, }); + if (!response) { + return; + } + + const { isPhishingDomain } = response; + if (isPhishingDomain) { const url = new URL(activeUrl);