added forgotten sethumanreadable.js
This commit is contained in:
parent
2fbef82fd2
commit
2ca762b3b6
10
onionr/static-data/www/mail/sethumanreadable.js
Normal file
10
onionr/static-data/www/mail/sethumanreadable.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
function setHumanReadableValue(el, key){
|
||||||
|
fetch('/getHumanReadable/' + key, {
|
||||||
|
headers: {
|
||||||
|
"token": webpass
|
||||||
|
}})
|
||||||
|
.then((resp) => resp.text())
|
||||||
|
.then(function(resp) {
|
||||||
|
el.value = resp
|
||||||
|
})
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user