diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-11-27 00:30:04 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-11-27 21:22:51 +0800 |
commit | a9d3c1a87d474e283c90ed6e17f6f3d9a4181111 (patch) | |
tree | 953555e6cdd382a8d710160a436045a5afb9bd6d | |
parent | 3e85d580f9c19e4d49dd5725bab37c956f7a7b03 (diff) | |
download | tangerine-wallet-browser-a9d3c1a87d474e283c90ed6e17f6f3d9a4181111.tar.gz tangerine-wallet-browser-a9d3c1a87d474e283c90ed6e17f6f3d9a4181111.tar.zst tangerine-wallet-browser-a9d3c1a87d474e283c90ed6e17f6f3d9a4181111.zip |
Open full-screen UI on install
-rw-r--r-- | app/scripts/background.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index 5e0bc433d..110852779 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -474,10 +474,9 @@ 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'}) +// On first install, open a new tab with MetaMask +extension.runtime.onInstalled.addListener(({reason}) => { + if ((reason === 'install') && (!METAMASK_DEBUG)) { + platform.openExtensionInBrowser() } }) - |