« get me outta code hell

content: linkContribution: drop duplicate tooltip slots - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkContribution.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-08-15 12:12:59 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-08-15 12:15:44 -0300
commit6001fda38ccc575b50182c312963b3661b43f42a (patch)
treeee08dfa15b32040dc19b580593e930d8699ec4e9 /src/content/dependencies/linkContribution.js
parent0fb2784f7b7d02df3c25db49ec43d2b178035bbe (diff)
content: linkContribution: drop duplicate tooltip slots
Diffstat (limited to 'src/content/dependencies/linkContribution.js')
-rw-r--r--src/content/dependencies/linkContribution.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/content/dependencies/linkContribution.js b/src/content/dependencies/linkContribution.js
index 26f0b2d7..feed74cc 100644
--- a/src/content/dependencies/linkContribution.js
+++ b/src/content/dependencies/linkContribution.js
@@ -42,6 +42,9 @@ export default {
       language.encapsulate('misc.artistLink', workingCapsule => {
         const workingOptions = {};
 
+        // Filling slots early is necessary to actually give the tooltip
+        // content. Otherwise, the coming-up html.isBlank() always reports
+        // the tooltip as blank!
         relations.tooltip.setSlots({
           showExternalLinks: slots.showExternalLinks,
           showChronology: slots.showChronology,
@@ -60,11 +63,7 @@ export default {
                   }),
 
                 tooltip:
-                  relations.tooltip.slots({
-                    showExternalLinks: slots.showExternalLinks,
-                    showChronology: slots.showChronology,
-                    chronologyKind: slots.chronologyKind,
-                  }),
+                  relations.tooltip,
               }));
 
         if (slots.showContribution && data.contribution) {