aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/background.js
diff options
context:
space:
mode:
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..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)
}
-