10 lines
231 B
JavaScript
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
|
|
})
|
|
} |