Don't do fancy javascript clicks on the notification page
This commit is contained in:
parent
d60684e08e
commit
8d72169bbd
3 changed files with 7 additions and 28 deletions
|
@ -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;
|
||||
}
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue