Onionr/onionr/static-data/www/mail/sethumanreadable.js

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
})
}