From 0c6c88d1810cb42005f51b1ae7f2dc02c44a4899 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 2 Jun 2024 18:58:36 +0200 Subject: [PATCH] fix minifier --- static/js/mail_obfuscation.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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");