mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +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