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,
|
hideNsfwLocal: this.$store.getters.mergedConfig.hideNsfw,
|
||||||
preloadImage: this.$store.getters.mergedConfig.preloadImage,
|
preloadImage: this.$store.getters.mergedConfig.preloadImage,
|
||||||
loading: false,
|
loading: false,
|
||||||
img: this.attachment.type == "image" && document.createElement('img'),
|
img: this.attachment.type === 'image' && document.createElement('img'),
|
||||||
modalOpen: false,
|
modalOpen: false,
|
||||||
showHidden: false,
|
showHidden: false,
|
||||||
flashLoaded: false,
|
flashLoaded: false,
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ const Gallery = {
|
||||||
: attachments
|
: attachments
|
||||||
.reduce(
|
.reduce(
|
||||||
(acc, attachment, i) => {
|
(acc, attachment, i) => {
|
||||||
if (attachment.type == 'audio') {
|
if (attachment.type === 'audio') {
|
||||||
return [
|
return [
|
||||||
...acc,
|
...acc,
|
||||||
{ audio: true, items: [attachment] },
|
{ audio: true, items: [attachment] },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue