diff options
| author | Erik Larkö <erik@mullvad.net> | 2018-02-01 13:04:20 +0100 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2018-02-01 13:10:04 +0100 |
| commit | 782ef83cfa0ee4e42b80ee8996b6740ccdc88777 (patch) | |
| tree | a001eb5e8dd61cfe4a4ad794851aa253b8bc6e5b /app | |
| parent | 8717a0dc5e71cb2195e5e017e1200965456f6400 (diff) | |
| download | mullvadvpn-782ef83cfa0ee4e42b80ee8996b6740ccdc88777.tar.xz mullvadvpn-782ef83cfa0ee4e42b80ee8996b6740ccdc88777.zip | |
Read the version from package.json instead of from electron
Diffstat (limited to 'app')
| -rw-r--r-- | app/containers/SettingsPage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/containers/SettingsPage.js b/app/containers/SettingsPage.js index 84977bab65..7c844252d3 100644 --- a/app/containers/SettingsPage.js +++ b/app/containers/SettingsPage.js @@ -3,7 +3,7 @@ import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { push } from 'react-router-redux'; -import { remote } from 'electron'; +import { version } from '../../package.json'; import Settings from '../components/Settings'; import { links } from '../config'; import { openLink, exit } from '../lib/platform'; @@ -14,7 +14,7 @@ import type { SharedRouteProps } from '../routes'; const mapStateToProps = (state: ReduxState) => { return { ...state, - version: remote.app.getVersion(), + version: version, }; }; const mapDispatchToProps = (dispatch: ReduxDispatch, _props: SharedRouteProps) => { |
