0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 11:15:14 +00:00

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

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>