diff --git a/browser/components/aboutlogins/content/aboutLogins.html b/browser/components/aboutlogins/content/aboutLogins.html index afe780663dc5..480908ef4d45 100644 --- a/browser/components/aboutlogins/content/aboutLogins.html +++ b/browser/components/aboutlogins/content/aboutLogins.html @@ -227,11 +227,11 @@

- - diff --git a/browser/components/aboutlogins/content/components/login-footer.js b/browser/components/aboutlogins/content/components/login-footer.js index 4906145193ca..7575393d330f 100644 --- a/browser/components/aboutlogins/content/components/login-footer.js +++ b/browser/components/aboutlogins/content/components/login-footer.js @@ -25,14 +25,15 @@ export default class LoginFooter extends HTMLElement { handleEvent(event) { switch (event.type) { case "click": { - let classList = event.originalTarget.classList; + let target = event.currentTarget; + let classList = target.classList; if ( - classList.contains("image-play-store") || - classList.contains("image-app-store") || + classList.contains("play-store") || + classList.contains("app-store") || classList.contains("close") ) { - let eventName = event.originalTarget.dataset.eventName; + let eventName = target.dataset.eventName; const linkTrackingSource = "Footer_Menu"; document.dispatchEvent( new CustomEvent(eventName, {