Addressing PR comment.

This commit is contained in:
2025-12-10 15:30:31 +00:00
parent af9431da4e
commit 9bffb8b5e9
2 changed files with 28 additions and 29 deletions

View File

@@ -11,12 +11,7 @@ function HostingSupport1984CopyEmailAddress(e) {
.catch(err => console.error("Clipboard write failed:", err));
}
document.querySelector('#hosting-support-1984-link')
?.addEventListener('click', HostingSupport1984CopyEmailAddress);
if (document.querySelector('#hosting-support-1984-link')) {
document.querySelector('#hosting-support-1984-link').addEventListener(
'click',
HostingSupport1984CopyEmailAddress
);
const hostingSupport1984Link = document.querySelector('#hosting-support-1984-link');
if (hostingSupport1984Link) {
hostingSupport1984Link.addEventListener('click', HostingSupport1984CopyEmailAddress);
}