diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-11-27 00:24:08 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-11-27 20:20:54 +0800 |
commit | 3e85d580f9c19e4d49dd5725bab37c956f7a7b03 (patch) | |
tree | d40c7efc060424933fefce3d12e2c1c55091f435 /app/scripts | |
parent | 486f9931c469ac1829b6f433ad3ebdc11821df22 (diff) | |
download | tangerine-wallet-browser-3e85d580f9c19e4d49dd5725bab37c956f7a7b03.tar tangerine-wallet-browser-3e85d580f9c19e4d49dd5725bab37c956f7a7b03.tar.gz tangerine-wallet-browser-3e85d580f9c19e4d49dd5725bab37c956f7a7b03.tar.bz2 tangerine-wallet-browser-3e85d580f9c19e4d49dd5725bab37c956f7a7b03.tar.lz tangerine-wallet-browser-3e85d580f9c19e4d49dd5725bab37c956f7a7b03.tar.xz tangerine-wallet-browser-3e85d580f9c19e4d49dd5725bab37c956f7a7b03.tar.zst tangerine-wallet-browser-3e85d580f9c19e4d49dd5725bab37c956f7a7b03.zip |
Revert "Don't open MetaMask website after install"
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/background.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index c75f514d5..5e0bc433d 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -41,6 +41,7 @@ const { const firstTimeState = Object.assign({}, rawFirstTimeState, global.METAMASK_TEST_CONFIG) const STORAGE_KEY = 'metamask-config' +const METAMASK_DEBUG = process.env.METAMASK_DEBUG log.setDefaultLevel(process.env.METAMASK_DEBUG ? 'debug' : 'warn') @@ -472,3 +473,11 @@ function openPopup () { } ) } + +// On first install, open a window to MetaMask website to how-it-works. +extension.runtime.onInstalled.addListener(function (details) { + if ((details.reason === 'install') && (!METAMASK_DEBUG)) { + extension.tabs.create({url: 'https://metamask.io/#how-it-works'}) + } +}) + |