« get me outta code hell

content: linkExternalAsIcon: update blank style detection - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-03 09:15:26 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-04-03 09:15:40 -0300
commitc730fce11ed3cd57cca6b5290bb83adeb6100dde (patch)
tree5fdcc989355513576108038df3919fcd773314e8
parent28c2b923775d440eb8606a824651236bfae0b0cf (diff)
content: linkExternalAsIcon: update blank style detection
-rw-r--r--src/content/dependencies/linkExternalAsIcon.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/content/dependencies/linkExternalAsIcon.js b/src/content/dependencies/linkExternalAsIcon.js
index c363ad90..6f37529e 100644
--- a/src/content/dependencies/linkExternalAsIcon.js
+++ b/src/content/dependencies/linkExternalAsIcon.js
@@ -43,7 +43,9 @@ export default {
 
         slots.withText &&
           html.tag('span', {class: 'icon-text'},
-            handleText ?? platformText),
+            (html.isBlank(handleText)
+              ? platformText
+              : handleText)),
       ]);
   },
 };