From 2ca762b3b6d05a5f1f33f2c2f8c5640a76a880ca Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Mon, 9 Sep 2019 03:56:50 -0500 Subject: [PATCH] added forgotten sethumanreadable.js --- onionr/static-data/www/mail/sethumanreadable.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 onionr/static-data/www/mail/sethumanreadable.js diff --git a/onionr/static-data/www/mail/sethumanreadable.js b/onionr/static-data/www/mail/sethumanreadable.js new file mode 100644 index 00000000..83279acd --- /dev/null +++ b/onionr/static-data/www/mail/sethumanreadable.js @@ -0,0 +1,10 @@ +function setHumanReadableValue(el, key){ + fetch('/getHumanReadable/' + key, { + headers: { + "token": webpass + }}) + .then((resp) => resp.text()) + .then(function(resp) { + el.value = resp + }) +} \ No newline at end of file