Merge branch 'feature/better-nsfw-image-loading' into 'develop'
issue #1 - better nsfw image loading See merge request !37
This commit is contained in:
commit
049c74f8e8
2 changed files with 6 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@ npm-debug.log
|
||||||
test/unit/coverage
|
test/unit/coverage
|
||||||
test/e2e/reports
|
test/e2e/reports
|
||||||
selenium-debug.log
|
selenium-debug.log
|
||||||
|
.idea/
|
||||||
|
|
|
@ -29,9 +29,13 @@ const Attachment = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
toggleHidden () {
|
toggleHidden () {
|
||||||
|
let img = document.createElement('img')
|
||||||
|
img.src = this.attachment.url
|
||||||
|
img.onload = () => {
|
||||||
this.showHidden = !this.showHidden
|
this.showHidden = !this.showHidden
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Attachment
|
export default Attachment
|
||||||
|
|
Loading…
Reference in a new issue