Don't display update notification when running dev build

This commit is contained in:
Grumpy Bear 2022-03-17 18:25:59 -06:00
parent a860645193
commit 812feb0bd5
1 changed files with 4 additions and 3 deletions

View File

@ -25,12 +25,13 @@ export default {
updateSnackbarTimeout: 5000
}
},
async mounted() {
const commits = await this.$vuetube.commits;
if (commits[0].sha != process.env.appVersion) {
const appVersion = process.env.appVersion;
if (appVersion !== commits[0].sha && appVersion !== 'dev-local') {
this.updateSnackbar = true;
}
},
}
</script>
</script>