Merge pull request #636 from MetaMask/how-it-works-bug

How it works now displays only on install
This commit is contained in:
Kevin Serrano 2016-09-09 14:49:16 -07:00 committed by GitHub
commit 153b6b73d8
2 changed files with 5 additions and 3 deletions

View File

@ -4,7 +4,7 @@
- Fix bug where pending transactions from Test net (or other networks) show up In Main net.
- Add fiat conversion values to more views.
- On fresh install, open a new tab with the MetaMask Introduction video.
- On fresh install, open a new tab with the MetaMask Introduction video. Does not open on update.
- Block negative values from transactions.
- Fixed a memory leak.
- MetaMask logo now renders as super lightweight SVG, improving compatibility and performance.

View File

@ -37,8 +37,10 @@ function showUnconfirmedTx (txParams, txData, onTxDoneCb) {
// 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'})
extension.runtime.onInstalled.addListener(function (details) {
if (details.reason === 'install') {
extension.tabs.create({url: 'https://metamask.io/#how-it-works'})
}
})
//