Browse Source

Added license link

master
Kevin Froman 2 years ago
parent
commit
bdbee65018
  1. 0
      LICENSE.txt
  2. 8
      hush-hush.js
  3. 2
      index.html

0
LICENSE → LICENSE.txt

8
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{

2
index.html

@ -31,7 +31,7 @@
<p class="subtitle">
anonymous decentralized message board 🌐
<img src="vanilla.png" alt="this website uses vanilla JS" aria-hidden="true" loading="lazy" class="is-pulled-right">
<img src="copyleft.png" alt="GNU" aria-hidden="true" loading="lazy" class="is-pulled-right">
<a href="LICENSE.txt"><img src="copyleft.png" alt="GNU" loading="lazy" class="is-pulled-right"></a>
</p>
<noscript><p class="has-text-warning">
JavaScript is required for this app. The server has no knowledge of posts, so content must be served by P2P nodes.

Loading…
Cancel
Save