diff --git a/client/js/util/views.js b/client/js/util/views.js index f6280a1c..3ea3a336 100644 --- a/client/js/util/views.js +++ b/client/js/util/views.js @@ -571,6 +571,11 @@ document.addEventListener("click", (e) => { e.preventDefault(); } }); +document.addEventListener("auxclick", (e) => { + if (e.target.getAttribute("href") === "" && e.button === 1) { + e.preventDefault(); + } +}); module.exports = { htmlToDom: htmlToDom,