From bdbee650187c5a75805de75e029d7fc18fd1519c Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 7 Oct 2020 22:46:45 +0000 Subject: [PATCH] Added license link --- LICENSE => LICENSE.txt | 0 hush-hush.js | 8 +++++++- index.html | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) rename LICENSE => LICENSE.txt (100%) diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/hush-hush.js b/hush-hush.js index cf292fe..a6b631c 100644 --- a/hush-hush.js +++ b/hush-hush.js @@ -138,7 +138,13 @@ async function findMessages(){ // Size is size of data (not metadata) and block hash document.getElementById('memUsage').innerText = getReadableFileSizeString(current + ((basicTextEncoder.encode(data)).length + block.length)) } - let metadata = JSON.parse(d.split("\n")[0]) + try{ + let metadata = JSON.parse(d.split("\n")[0]) + } + catch(e){ + console.debug(e) + return + } let data = d.substring(d.indexOf('\n') + 1); try{ diff --git a/index.html b/index.html index 36f3d67..2a9bdce 100644 --- a/index.html +++ b/index.html @@ -31,7 +31,7 @@

anonymous decentralized message board 🌐 - + GNU