Do not open MM page in dev mode.

feature/default_network_editable
Kevin Serrano 8 years ago
parent 0643c35936
commit e2f67a2cb8
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
  1. 3
      app/scripts/background.js

@ -10,6 +10,7 @@ const MetamaskController = require('./metamask-controller')
const extension = require('./lib/extension')
const STORAGE_KEY = 'metamask-config'
const METAMASK_DEBUG = 'GULP_METAMASK_DEBUG'
var popupIsOpen = false
const controller = new MetamaskController({
@ -29,7 +30,7 @@ function triggerUi () {
// On first install, open a window to MetaMask website to how-it-works.
extension.runtime.onInstalled.addListener(function (details) {
if (details.reason === 'install') {
if ((details.reason === 'install') && (!METAMASK_DEBUG)) {
extension.tabs.create({url: 'https://metamask.io/#how-it-works'})
}
})

Loading…
Cancel
Save