mirror of
https://github.com/bitwarden/browser
synced 2026-02-10 13:40:06 +00:00
Add functionality to navigate back in history.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user