Do not trigger how-to-video on anything but install.

feature/default_network_editable
Kevin Serrano 8 years ago
parent 7fd0ddd078
commit 36759b3238
  1. 6
      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'})
}
})
//

Loading…
Cancel
Save