diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index f7c5340e3..b1a3d82b8 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -60,7 +60,7 @@ const Attachment = { hideNsfwLocal: this.$store.getters.mergedConfig.hideNsfw, preloadImage: this.$store.getters.mergedConfig.preloadImage, loading: false, - img: this.attachment.type == "image" && document.createElement('img'), + img: this.attachment.type === 'image' && document.createElement('img'), modalOpen: false, showHidden: false, flashLoaded: false, diff --git a/src/components/gallery/gallery.js b/src/components/gallery/gallery.js index 19d568b3a..42cc6cfd6 100644 --- a/src/components/gallery/gallery.js +++ b/src/components/gallery/gallery.js @@ -47,7 +47,7 @@ const Gallery = { : attachments .reduce( (acc, attachment, i) => { - if (attachment.type == 'audio') { + if (attachment.type === 'audio') { return [ ...acc, { audio: true, items: [attachment] },