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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user