Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit f7ebea2

Browse files
committed
Fixed version retrieving
1 parent f49be56 commit f7ebea2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/renderer/main.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Vue from 'vue'
22
import axios from 'axios'
33
import App from './App'
4+
import {version} from '../../package.json';
45

56
if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
67
Vue.http = Vue.prototype.$http = axios
@@ -33,7 +34,7 @@ Vue.component('font-awesome-layers', FontAwesomeLayers)
3334

3435
let config = {};
3536

36-
config.version = process.env.npm_package_version;
37+
config.version = version;
3738
config.server = (process.env.NODE_ENV !== 'production') ? '4sucres.localhost' : config.server = '4sucres.org';
3839

3940
Vue.mixin({

0 commit comments

Comments
 (0)