Don't do fancy javascript clicks on the notification page

This commit is contained in:
Mouse Reeve
2021-12-30 19:48:47 -08:00
parent d60684e08e
commit 8d72169bbd
3 changed files with 7 additions and 28 deletions

View File

@ -1,21 +0,0 @@
/* exported BlockHref */
let BlockHref = new (class {
constructor() {
document
.querySelectorAll("[data-href]")
.forEach((t) => t.addEventListener("click", this.followLink.bind(this)));
}
/**
* Follow a fake link
*
* @param {Event} event
* @return {undefined}
*/
followLink(event) {
const url = event.currentTarget.dataset.href;
window.location.href = url;
}
})();