attachment&gallery: code: use === instead of ==

This commit is contained in:
Yonle 2026-03-03 12:51:27 +07:00
commit f40fdf1240
No known key found for this signature in database
GPG key ID: 11889F326F523287
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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] },