1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Get version from manifest instead of hard coding in New UI info page.

This commit is contained in:
Dan 2018-01-19 16:22:57 -03:30 committed by Chi Kei Chan
parent 4e63924e60
commit c554e52e82

View File

@ -333,6 +333,8 @@ class Settings extends Component {
} }
renderInfoContent () { renderInfoContent () {
const version = global.platform.getVersion()
return ( return (
h('div.settings__content', [ h('div.settings__content', [
h('div.settings__content-row', [ h('div.settings__content-row', [
@ -340,7 +342,7 @@ class Settings extends Component {
this.renderLogo(), this.renderLogo(),
h('div.settings__info-item', [ h('div.settings__info-item', [
h('div.settings__info-version-header', 'MetaMask Version'), h('div.settings__info-version-header', 'MetaMask Version'),
h('div.settings__info-version-number', '4.0.0'), h('div.settings__info-version-number', version),
]), ]),
h('div.settings__info-item', [ h('div.settings__info-item', [
h( h(