aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/background.js
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-09-07 06:34:23 +0800
committerGitHub <noreply@github.com>2016-09-07 06:34:23 +0800
commitb1cd7ebc47f8ec2170c03cff67a0f8fd870a325a (patch)
tree52f4af47913eb907e28c1eb5a614d701f879e2e6 /app/scripts/background.js
parent095a40e33d40bc02ef6a6b7379eb6c90e0b4c3d8 (diff)
parent01618a88aa28a1302908b393428397e7a29416b4 (diff)
downloadtangerine-wallet-browser-b1cd7ebc47f8ec2170c03cff67a0f8fd870a325a.tar
tangerine-wallet-browser-b1cd7ebc47f8ec2170c03cff67a0f8fd870a325a.tar.gz
tangerine-wallet-browser-b1cd7ebc47f8ec2170c03cff67a0f8fd870a325a.tar.bz2
tangerine-wallet-browser-b1cd7ebc47f8ec2170c03cff67a0f8fd870a325a.tar.lz
tangerine-wallet-browser-b1cd7ebc47f8ec2170c03cff67a0f8fd870a325a.tar.xz
tangerine-wallet-browser-b1cd7ebc47f8ec2170c03cff67a0f8fd870a325a.tar.zst
tangerine-wallet-browser-b1cd7ebc47f8ec2170c03cff67a0f8fd870a325a.zip
Merge pull request #612 from MetaMask/first-time
Open Introduction Video tab on install
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r--app/scripts/background.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 5dae8235f..21a5eea65 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.
+
+extension.runtime.onInstalled.addListener(function (object) {
+ extension.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)
}
-