aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-11-27 00:30:04 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-11-27 21:22:51 +0800
commita9d3c1a87d474e283c90ed6e17f6f3d9a4181111 (patch)
tree953555e6cdd382a8d710160a436045a5afb9bd6d /app/scripts
parent3e85d580f9c19e4d49dd5725bab37c956f7a7b03 (diff)
downloadtangerine-wallet-browser-a9d3c1a87d474e283c90ed6e17f6f3d9a4181111.tar
tangerine-wallet-browser-a9d3c1a87d474e283c90ed6e17f6f3d9a4181111.tar.gz
tangerine-wallet-browser-a9d3c1a87d474e283c90ed6e17f6f3d9a4181111.tar.bz2
tangerine-wallet-browser-a9d3c1a87d474e283c90ed6e17f6f3d9a4181111.tar.lz
tangerine-wallet-browser-a9d3c1a87d474e283c90ed6e17f6f3d9a4181111.tar.xz
tangerine-wallet-browser-a9d3c1a87d474e283c90ed6e17f6f3d9a4181111.tar.zst
tangerine-wallet-browser-a9d3c1a87d474e283c90ed6e17f6f3d9a4181111.zip
Open full-screen UI on install
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/background.js9
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()
}
})
-