From 63223062735430508df5946c6197d97b91a7ab89 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sun, 22 Sep 2019 14:22:35 -0500 Subject: [PATCH] fixed mail plugin being broken --- onionr/static-data/default-plugins/pms/loadinbox.py | 2 +- onionr/static-data/www/mail/mail.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/onionr/static-data/default-plugins/pms/loadinbox.py b/onionr/static-data/default-plugins/pms/loadinbox.py index 69d6f570..5f21a083 100755 --- a/onionr/static-data/default-plugins/pms/loadinbox.py +++ b/onionr/static-data/default-plugins/pms/loadinbox.py @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . ''' -import onionrblockapi +from onionrblocks import onionrblockapi from coredb import blockmetadb import filepaths from utils import reconstructhash, identifyhome diff --git a/onionr/static-data/www/mail/mail.js b/onionr/static-data/www/mail/mail.js index cab8faca..6b7def2b 100755 --- a/onionr/static-data/www/mail/mail.js +++ b/onionr/static-data/www/mail/mail.js @@ -146,9 +146,6 @@ function deleteMessage(bHash){ headers: { "token": webpass }}) - .then((resp) => resp.text()) - .then(function(resp) { - }) } function mailPing(){ @@ -204,10 +201,11 @@ function loadInboxEntries(bHash){ entry.setAttribute('data-nameSet', false) } else{ - resp2 => resp2.text() + resp2.text().then(function(resp2){ loadHumanReadableToCache(resp['meta']['signer']) senderInput.value = resp2 entry.setAttribute('data-nameSet', true) + }) } })