added forgotten sethumanreadable.js

This commit is contained in:
Kevin Froman 2019-09-09 03:56:50 -05:00
parent 2fbef82fd2
commit 2ca762b3b6
1 changed files with 10 additions and 0 deletions

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