From 756f56cfee442992c51ac84b042b36dc3f7845ba Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Thu, 3 Nov 2016 10:42:34 -0700 Subject: [PATCH] Don't faucet in development --- app/scripts/lib/auto-faucet.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/scripts/lib/auto-faucet.js b/app/scripts/lib/auto-faucet.js index 59cf0ec20..ec5e8ed4c 100644 --- a/app/scripts/lib/auto-faucet.js +++ b/app/scripts/lib/auto-faucet.js @@ -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)