From a9d3c1a87d474e283c90ed6e17f6f3d9a4181111 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Mon, 26 Nov 2018 13:00:04 -0330 Subject: Open full-screen UI on install --- app/scripts/background.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'app') 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() } }) - -- cgit v1.2.3