1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 05:30:01 +00:00

Add exit functionality for onclick.

This commit is contained in:
Jimmy Vo
2025-03-19 14:18:35 -04:00
parent b5895920bf
commit e84470571a

View File

@@ -27,6 +27,12 @@ export class PhishingDetectionBrowserService {
exitButton.id = "change-exit";
exitButton.classList.add("primary");
exitButton.textContent = "Exit the page";
exitButton.onclick = () => {
const barEl = document.getElementById(phishingDivId);
if (barEl != null) {
barEl.parentElement.removeChild(barEl);
}
};
wrapper.appendChild(messageElement);
wrapper.appendChild(exitButton);