« 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/image.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/image.js')
-rw-r--r--src/content/dependencies/image.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js
index 6b937043..f93ce97e 100644
--- a/src/content/dependencies/image.js
+++ b/src/content/dependencies/image.js
@@ -130,15 +130,15 @@ export default {
       slots.alt && {alt: slots.alt},
       slots.width && {width: slots.width},
       slots.height && {height: slots.height},
-
-      customLink &&
-        {'data-no-image-preview': true},
     ]);
 
     const linkAttributes = html.attributes([
       (customLink
         ? {href: slots.link}
         : {href: originalSrc}),
+
+      customLink &&
+        {class: 'no-image-preview'},
     ]);
 
     const containerAttributes = html.attributes();