diff options
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/image.js | 6 |
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(); |