From 812feb0bd5a58e8325f0a5fcc3dd105c230f4acf Mon Sep 17 00:00:00 2001 From: Grumpy Bear Date: Thu, 17 Mar 2022 18:25:59 -0600 Subject: [PATCH] Don't display update notification when running dev build --- NUXT/components/updateChecker.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/NUXT/components/updateChecker.vue b/NUXT/components/updateChecker.vue index 6c75791..c97e5e6 100644 --- a/NUXT/components/updateChecker.vue +++ b/NUXT/components/updateChecker.vue @@ -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; } }, } - \ No newline at end of file +