« get me outta code hell

content: generateTextWithTooltip: onlyIfContent - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-21 10:16:12 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-21 10:47:46 -0300
commitb6369a60d550c2c98340e6fd6e0ae1c584b9391e (patch)
tree6a91e9cd20b610e37c6b82e3a4cdcbb43f80afeb /src
parent57e898032afce1715f1493592c7d5d21efc7f6e4 (diff)
content: generateTextWithTooltip: onlyIfContent
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateTextWithTooltip.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content/dependencies/generateTextWithTooltip.js b/src/content/dependencies/generateTextWithTooltip.js
index 462557d1..87626367 100644
--- a/src/content/dependencies/generateTextWithTooltip.js
+++ b/src/content/dependencies/generateTextWithTooltip.js
@@ -36,6 +36,7 @@ export default {
     if (hasTooltip) {
       attributes = attributes.clone();
       attributes.add({
+        [html.onlyIfContent]: true,
         [html.joinChildren]: '',
         [html.noEdgeWhitespace]: true,
         class: 'text-with-tooltip',