diff --git a/static/js/mail_obfuscation.js b/static/js/mail_obfuscation.js index 7fb68ea..b0b1687 100644 --- a/static/js/mail_obfuscation.js +++ b/static/js/mail_obfuscation.js @@ -8,11 +8,7 @@ window.addEventListener("load", () => { // Correct text const data = span.getAttribute("title"); - if (data.length > 0) { - a.innerHTML = data; - } else { - a.style = "hyphens: none;"; - } + data.length > 0 ? (a.innerHTML = data) : (a.style = "hyphens: none;"); // Change link const href = a.getAttribute("href");