Only load screenshots if available from app store releases

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2021-10-05 13:26:23 +02:00
parent ee32c7c328
commit c9656eff06
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF
6 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -144,7 +144,7 @@ export default {
},
mounted() {
this.isSelected = (this.app.id === this.$route.params.id)
if (this.app.screenshot) {
if (this.app.releases && this.app.screenshot) {
const image = new Image()
image.onload = (e) => {
this.screenshotLoaded = true

View file

@ -262,7 +262,7 @@ export default {
app() {
this.screenshotLoaded = false
if (this.app && this.app.screenshot) {
if (this.app?.releases && this.app?.screenshot) {
const image = new Image()
image.onload = (e) => {
this.screenshotLoaded = true