Added various conditions to prevent errors and warnings.

This commit is contained in:
DebaucheryLibrarian
2021-03-04 02:35:43 +01:00
parent 0c98df232e
commit fa30fe5169
7 changed files with 37 additions and 14 deletions

View File

@@ -167,6 +167,7 @@ export default {
default: null,
},
},
emits: ['load'],
data() {
return {
player: null,

View File

@@ -218,7 +218,9 @@ async function fetchRelease() {
this.release = await this.$store.dispatch('fetchMovieById', this.$route.params.releaseId);
}
this.$refs.content.scrollTop = 0;
if (this.$refs.content) {
this.$refs.content.scrollTop = 0;
}
}
function bannerBackground() {