From d24d0fc31525393cae1990f5bd0ef448afdbd5f2 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 10 Sep 2019 13:43:40 -0500 Subject: [PATCH] added block count shield to readme --- README.md | 2 ++ onionr/static-data/www/mail/mail.js | 3 +-- .../static-data/www/mail/sethumanreadable.js | 18 ++++++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e0d3ed47..81ed7cbf 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ +current stored block count + | | | | diff --git a/onionr/static-data/www/mail/mail.js b/onionr/static-data/www/mail/mail.js index 135093cb..cab8faca 100755 --- a/onionr/static-data/www/mail/mail.js +++ b/onionr/static-data/www/mail/mail.js @@ -28,7 +28,7 @@ addUnknownContact = document.getElementById('addUnknownContact') noInbox = document.getElementById('noInbox') humanReadableCache = {} -function addContact(pubkey, friendName){ +async function addContact(pubkey, friendName){ fetch('/friends/add/' + pubkey, { method: 'POST', headers: { @@ -77,7 +77,6 @@ function openReply(bHash, quote, subject){ function openThread(bHash, sender, date, sigBool, pubkey, subjectLine){ addUnknownContact.style.display = 'none' var messageDisplay = document.getElementById('threadDisplay') - //var blockContent = httpGet('/getblockbody/' + bHash) fetch('/getblockbody/' + bHash, { "method": "get", diff --git a/onionr/static-data/www/mail/sethumanreadable.js b/onionr/static-data/www/mail/sethumanreadable.js index 188f7811..0e536f94 100644 --- a/onionr/static-data/www/mail/sethumanreadable.js +++ b/onionr/static-data/www/mail/sethumanreadable.js @@ -1,3 +1,21 @@ +/* + Onionr - Private P2P Communication + + Load human readable public keys into a cache + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ function loadHumanReadableToCache(key){ fetch('/getHumanReadable/' + key, { headers: {