mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Don't open metamask.io after install anymore
This commit is contained in:
parent
5fc2c4250b
commit
ba39fbeb49
@ -38,7 +38,6 @@ const {
|
|||||||
const firstTimeState = Object.assign({}, rawFirstTimeState, global.METAMASK_TEST_CONFIG)
|
const firstTimeState = Object.assign({}, rawFirstTimeState, global.METAMASK_TEST_CONFIG)
|
||||||
|
|
||||||
const STORAGE_KEY = 'metamask-config'
|
const STORAGE_KEY = 'metamask-config'
|
||||||
const METAMASK_DEBUG = process.env.METAMASK_DEBUG
|
|
||||||
|
|
||||||
log.setDefaultLevel(process.env.METAMASK_DEBUG ? 'debug' : 'warn')
|
log.setDefaultLevel(process.env.METAMASK_DEBUG ? 'debug' : 'warn')
|
||||||
|
|
||||||
@ -462,11 +461,3 @@ function showWatchAssetUi () {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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'})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user