1
0
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:
Dan Finlay 2016-11-03 10:42:34 -07:00
parent 185396ff08
commit 756f56cfee

View File

@ -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)