aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-11-04 01:42:34 +0800
committerDan Finlay <dan@danfinlay.com>2016-11-04 01:42:34 +0800
commit756f56cfee442992c51ac84b042b36dc3f7845ba (patch)
tree292bce7bb23061a49a52c023c4ad7c048d230549 /app
parent185396ff08786dc108cabb57d47925032a9e2d74 (diff)
downloadtangerine-wallet-browser-756f56cfee442992c51ac84b042b36dc3f7845ba.tar
tangerine-wallet-browser-756f56cfee442992c51ac84b042b36dc3f7845ba.tar.gz
tangerine-wallet-browser-756f56cfee442992c51ac84b042b36dc3f7845ba.tar.bz2
tangerine-wallet-browser-756f56cfee442992c51ac84b042b36dc3f7845ba.tar.lz
tangerine-wallet-browser-756f56cfee442992c51ac84b042b36dc3f7845ba.tar.xz
tangerine-wallet-browser-756f56cfee442992c51ac84b042b36dc3f7845ba.tar.zst
tangerine-wallet-browser-756f56cfee442992c51ac84b042b36dc3f7845ba.zip
Don't faucet in development
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/auto-faucet.js4
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)