aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-09-10 05:23:04 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-09-10 05:23:04 +0800
commit36759b3238be867de02d1e6177b0a1c96ac5125c (patch)
treee2d90623a91b631fb7bacfcd41083b1df5821e18
parent7fd0ddd078af8ce5c6b59abbcc1a4f7facde8613 (diff)
downloadtangerine-wallet-browser-36759b3238be867de02d1e6177b0a1c96ac5125c.tar
tangerine-wallet-browser-36759b3238be867de02d1e6177b0a1c96ac5125c.tar.gz
tangerine-wallet-browser-36759b3238be867de02d1e6177b0a1c96ac5125c.tar.bz2
tangerine-wallet-browser-36759b3238be867de02d1e6177b0a1c96ac5125c.tar.lz
tangerine-wallet-browser-36759b3238be867de02d1e6177b0a1c96ac5125c.tar.xz
tangerine-wallet-browser-36759b3238be867de02d1e6177b0a1c96ac5125c.tar.zst
tangerine-wallet-browser-36759b3238be867de02d1e6177b0a1c96ac5125c.zip
Do not trigger how-to-video on anything but install.
-rw-r--r--app/scripts/background.js6
1 files changed, 4 insertions, 2 deletions
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'})
+ }
})
//