1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 07:16:36 +01:00

Redirect to video in a new tab on fresh install.

This commit is contained in:
Kevin Serrano 2016-09-06 10:24:31 -07:00
parent f213ca695c
commit 9cb600e17a

View File

@ -35,6 +35,12 @@ function showUnconfirmedTx (txParams, txData, onTxDoneCb) {
notification.show() 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 // connect to other contexts
// //
@ -160,4 +166,3 @@ function getOldStyleData () {
function setData (data) { function setData (data) {
window.localStorage[STORAGE_KEY] = JSON.stringify(data) window.localStorage[STORAGE_KEY] = JSON.stringify(data)
} }