Merge pull request #212 from jef/chore/use-process-version

chore: use process.env for version
This commit is contained in:
Daan Wijns 2021-04-13 20:40:33 +02:00 committed by GitHub
commit b48dff64db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()
},