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

Merge pull request #612 from MetaMask/first-time

Open Introduction Video tab on install
This commit is contained in:
Dan Finlay 2016-09-06 15:34:23 -07:00 committed by GitHub
commit b1cd7ebc47
5 changed files with 14 additions and 7 deletions

View File

@ -2,6 +2,9 @@
## Current Master
- On fresh install, open a new tab with the MetaMask Introduction video.
- Block negative values from transactions.
## 2.10.2 2016-09-02
- Fix bug where notification popup would not display.

View File

@ -35,6 +35,12 @@ function showUnconfirmedTx (txParams, txData, onTxDoneCb) {
notification.show()
}
// On first install, open a window to MetaMask website to how-it-works.
extension.runtime.onInstalled.addListener(function (object) {
extension.tabs.create({url: 'https://metamask.io/#how-it-works'})
})
//
// connect to other contexts
//
@ -160,4 +166,3 @@ function getOldStyleData () {
function setData (data) {
window.localStorage[STORAGE_KEY] = JSON.stringify(data)
}

View File

@ -14,7 +14,7 @@ function AccountInfoLink () {
AccountInfoLink.prototype.render = function () {
const { selected, network } = this.props
const title = 'View account on etherscan'
const title = 'View account on Etherscan'
const url = genAccountLink(selected, network)
if (!url) {

View File

@ -106,7 +106,7 @@ BuyButtonSubview.prototype.formVersionSubview = function () {
style: {
width: '225px',
},
}, 'In order to access this feature please switch too the Main Network'),
}, 'In order to access this feature please switch to the Main Network'),
h('h3.text-transform-uppercase', 'or:'),
this.props.network === '2' ? h('button.text-transform-uppercase', {
onClick: () => this.props.dispatch(actions.buyEth()),

View File

@ -35,10 +35,9 @@ EthStoreWarning.prototype.render = function () {
margin: '10px 10px 10px 10px',
},
},
`The MetaMask team would like to
remind you that MetaMask is currently in beta - so
don't store large
amounts of ether in MetaMask.
`MetaMask is currently in beta; use
caution in storing large
amounts of ether.
`),
h('i.fa.fa-exclamation-triangle.fa-4', {