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:
parent
a860645193
commit
812feb0bd5
1 changed files with 4 additions and 3 deletions
|
@ -25,12 +25,13 @@ export default {
|
||||||
updateSnackbarTimeout: 5000
|
updateSnackbarTimeout: 5000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue