From 14d19903df10c3b70988f80e7c80703d8009bb10 Mon Sep 17 00:00:00 2001 From: Jimmy Vo Date: Thu, 20 Mar 2025 11:57:06 -0400 Subject: [PATCH] Add functionality to navigate back in history. --- .../content/phishing-detection-browser.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/browser/src/phishing-detection/content/phishing-detection-browser.service.ts b/apps/browser/src/phishing-detection/content/phishing-detection-browser.service.ts index e1436cc6136..6aba81d2172 100644 --- a/apps/browser/src/phishing-detection/content/phishing-detection-browser.service.ts +++ b/apps/browser/src/phishing-detection/content/phishing-detection-browser.service.ts @@ -65,8 +65,7 @@ export class PhishingDetectionBrowserService { exitButton.style.marginTop = "10px"; exitButton.textContent = "Exit Page"; exitButton.addEventListener("click", () => { - window.open("about:blank", "_self"); // Open a blank page in the same tab - window.close(); // Try to close it + window.history.back(); }); // Append elements