mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 02:58:09 +01:00
12 lines
249 B
JavaScript
12 lines
249 B
JavaScript
|
var uri = 'https://faucet.metamask.io/'
|
||
|
|
||
|
module.exports = function(address) {
|
||
|
|
||
|
var http = new XMLHttpRequest()
|
||
|
var data = address
|
||
|
http.open('POST', uri, true)
|
||
|
http.setRequestHeader('Content-type', 'application/rawdata')
|
||
|
http.send(data)
|
||
|
|
||
|
}
|