« get me outta code hell

content: transformContent: never show tooltips - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-13 22:18:09 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-13 22:19:30 -0400
commita945dbfbe48dadf0a31aa8c633fa8fcf7c8bcbda (patch)
tree78972fb0fbe6e4b09e19f0e25b72235b9cdefcfd /src/content/dependencies
parent264c086fcc5c13257f17cc169e9077d2451d9823 (diff)
content: transformContent: never show tooltips
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/transformContent.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index ddf82391..760b509a 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -432,6 +432,19 @@ export default {
               link.setSlot('preferShortName', slots.preferShortLinkNames);
             }
 
+            // TODO: The same, the same.
+            let hasTooltipStyleSlot;
+            try {
+              link.getSlotDescription('tooltipStyle');
+              hasTooltipStyleSlot = true;
+            } catch (error) {
+              hasTooltipStyleSlot = false;
+            }
+
+            if (hasTooltipStyleSlot) {
+              link.setSlot('tooltipStyle', 'none');
+            }
+
             return {type: 'link', data: link};
           }