attachment&gallery: code: use === instead of ==
This commit is contained in:
parent
68eab91db8
commit
f40fdf1240
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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] },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue