diff options
-rw-r--r-- | app/scripts/lib/auto-faucet.js | 4 |
1 files changed, 3 insertions, 1 deletions
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) |