aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-09-10 05:49:16 +0800
committerGitHub <noreply@github.com>2016-09-10 05:49:16 +0800
commit153b6b73d8244e3e30d25784ad9ef937048e2d1b (patch)
tree24847f3ffa82db159950acf6ca1508b6bcd7ab51
parent7fd0ddd078af8ce5c6b59abbcc1a4f7facde8613 (diff)
parent5e38f48f411755e585c0f2add80a748424288db0 (diff)
downloadtangerine-wallet-browser-153b6b73d8244e3e30d25784ad9ef937048e2d1b.tar
tangerine-wallet-browser-153b6b73d8244e3e30d25784ad9ef937048e2d1b.tar.gz
tangerine-wallet-browser-153b6b73d8244e3e30d25784ad9ef937048e2d1b.tar.bz2
tangerine-wallet-browser-153b6b73d8244e3e30d25784ad9ef937048e2d1b.tar.lz
tangerine-wallet-browser-153b6b73d8244e3e30d25784ad9ef937048e2d1b.tar.xz
tangerine-wallet-browser-153b6b73d8244e3e30d25784ad9ef937048e2d1b.tar.zst
tangerine-wallet-browser-153b6b73d8244e3e30d25784ad9ef937048e2d1b.zip
Merge pull request #636 from MetaMask/how-it-works-bug
How it works now displays only on install
-rw-r--r--CHANGELOG.md2
-rw-r--r--app/scripts/background.js6
2 files changed, 5 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4548480ec..9d89c2438 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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.
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 21a5eea65..58228a41a 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -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'})
+ }
})
//