Onionr/onionr/static-data/www/mail/sethumanreadable.js
2019-09-09 03:56:50 -05:00

10 lines
231 B
JavaScript

function setHumanReadableValue(el, key){
fetch('/getHumanReadable/' + key, {
headers: {
"token": webpass
}})
.then((resp) => resp.text())
.then(function(resp) {
el.value = resp
})
}