diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-09-07 01:24:31 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-09-07 01:24:31 +0800 |
commit | 9cb600e17ab43f897abfd874d70ca72221437b9c (patch) | |
tree | dce3c31277e1276bb49dac37453083444b9ca9ff /app/scripts/background.js | |
parent | f213ca695c665450ba9a3fe7475c9ed6f3e98a14 (diff) | |
download | tangerine-wallet-browser-9cb600e17ab43f897abfd874d70ca72221437b9c.tar tangerine-wallet-browser-9cb600e17ab43f897abfd874d70ca72221437b9c.tar.gz tangerine-wallet-browser-9cb600e17ab43f897abfd874d70ca72221437b9c.tar.bz2 tangerine-wallet-browser-9cb600e17ab43f897abfd874d70ca72221437b9c.tar.lz tangerine-wallet-browser-9cb600e17ab43f897abfd874d70ca72221437b9c.tar.xz tangerine-wallet-browser-9cb600e17ab43f897abfd874d70ca72221437b9c.tar.zst tangerine-wallet-browser-9cb600e17ab43f897abfd874d70ca72221437b9c.zip |
Redirect to video in a new tab on fresh install.
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r-- | app/scripts/background.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index 5dae8235f..91c09629c 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -35,6 +35,12 @@ function showUnconfirmedTx (txParams, txData, onTxDoneCb) { notification.show() } +// On first install, open a window to MetaMask website to how-it-works. + +chrome.runtime.onInstalled.addListener(function (object) { + chrome.tabs.create({url: 'https://metamask.io/#how-it-works'}) +}) + // // connect to other contexts // @@ -160,4 +166,3 @@ function getOldStyleData () { function setData (data) { window.localStorage[STORAGE_KEY] = JSON.stringify(data) } - |