From 36759b3238be867de02d1e6177b0a1c96ac5125c Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Fri, 9 Sep 2016 14:23:04 -0700 Subject: [PATCH] Do not trigger how-to-video on anything but install. --- app/scripts/background.js | 6 ++++-- 1 file 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'}) + } }) //