chore: use process.env for version

This commit is contained in:
Jef LeCompte 2021-04-13 10:31:07 -04:00
parent def3ae41f5
commit c3e1bca854
No known key found for this signature in database
GPG key ID: 7F5BA322B5DC170C

View file

@ -16,7 +16,6 @@
<script>
import { mapState, mapGetters } from 'vuex'
import Navbar from '@/components/Navbar/Navbar.vue'
import { version } from '../package.json'
import qbit from '@/services/qbit'
import { General } from '@/mixins'
@ -35,7 +34,7 @@ export default {
}
},
created() {
this.$store.commit('SET_APP_VERSION', version)
this.$store.commit('SET_APP_VERSION', process.env['npm_package_version'])
this.checkDeviceDarkTheme()
this.checkAuthenticated()
},