« get me outta code hell

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:
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) {