mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Don't faucet in development
This commit is contained in:
parent
185396ff08
commit
756f56cfee
@ -1,6 +1,8 @@
|
||||
var uri = 'https://faucet.metamask.io/'
|
||||
const uri = 'https://faucet.metamask.io/'
|
||||
const METAMASK_DEBUG = 'GULP_METAMASK_DEBUG'
|
||||
|
||||
module.exports = function (address) {
|
||||
if (METAMASK_DEBUG) return // Don't faucet in development
|
||||
var http = new XMLHttpRequest()
|
||||
var data = address
|
||||
http.open('POST', uri, true)
|
||||
|
Loading…
Reference in New Issue
Block a user