aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/background.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/background.js')
-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'})
+ }
})
//