aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-11-02 02:21:46 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-11-02 02:21:46 +0800
commite2f67a2cb85552bd8fcf2f7929c14a9d028adccb (patch)
treebe76eb95482dc5fa419dd1f8df0f62038fa08f03 /app
parent0643c35936b66f3f3d6b59423aae615cc90a0fbf (diff)
downloadtangerine-wallet-browser-e2f67a2cb85552bd8fcf2f7929c14a9d028adccb.tar
tangerine-wallet-browser-e2f67a2cb85552bd8fcf2f7929c14a9d028adccb.tar.gz
tangerine-wallet-browser-e2f67a2cb85552bd8fcf2f7929c14a9d028adccb.tar.bz2
tangerine-wallet-browser-e2f67a2cb85552bd8fcf2f7929c14a9d028adccb.tar.lz
tangerine-wallet-browser-e2f67a2cb85552bd8fcf2f7929c14a9d028adccb.tar.xz
tangerine-wallet-browser-e2f67a2cb85552bd8fcf2f7929c14a9d028adccb.tar.zst
tangerine-wallet-browser-e2f67a2cb85552bd8fcf2f7929c14a9d028adccb.zip
Do not open MM page in dev mode.
Diffstat (limited to 'app')
-rw-r--r--app/scripts/background.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index f05760ac3..27c9179a7 100644
--- a/app/scripts/background.js
+++ b/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'})
}
})