0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-25 20:55:17 +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

@ -28,7 +28,8 @@ export default {
async mounted() { async mounted() {
const commits = await this.$vuetube.commits; 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; this.updateSnackbar = true;
} }
}, },