From a08490f669c343ab4b35d2cfb033a3bcefc64cae Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 2 Jun 2024 18:53:40 +0200 Subject: [PATCH] fix issue --- static/js/mail_obfuscation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/mail_obfuscation.js b/static/js/mail_obfuscation.js index 53cfdf1..7fb68ea 100644 --- a/static/js/mail_obfuscation.js +++ b/static/js/mail_obfuscation.js @@ -15,6 +15,7 @@ window.addEventListener("load", () => { } // Change link - a.setAttribute("href", a.textContent); + const href = a.getAttribute("href"); + a.setAttribute("href", href.replace(" at ", "@")); }); });