merge-requests/18/head
parent
f0382d24da
commit
557ffa2f4a
12 changed files with 101 additions and 18 deletions
@ -1 +1 @@ |
||||
svlegnabtuh3dq6ncmzqmpnxzik5mita5x22up4tai2ekngzcgqbnbqd.onion |
||||
dd3llxdp5q6ak3zmmicoy3jnodmroouv2xr7whkygiwp3rl7nf23gdad.onion |
@ -0,0 +1,28 @@ |
||||
pms = '' |
||||
threadPart = document.getElementById('threads') |
||||
function getInbox(){ |
||||
for(var i = 0; i < pms.length; i++) { |
||||
fetch('/getblockdata/' + pms[i], { |
||||
headers: { |
||||
"token": webpass |
||||
}}) |
||||
.then((resp) => resp.json()) // Transform the data into json
|
||||
.then(function(resp) { |
||||
var entry = document.createElement('div') |
||||
entry.innerHTML = resp['meta']['time'] + ' - ' + resp['meta']['signer'] |
||||
threadPart.appendChild(entry) |
||||
}) |
||||
} |
||||
|
||||
} |
||||
|
||||
fetch('/getblocksbytype/pm', { |
||||
headers: { |
||||
"token": webpass |
||||
}}) |
||||
.then((resp) => resp.text()) // Transform the data into json
|
||||
.then(function(data) { |
||||
pms = data.split(',') |
||||
getInbox() |
||||
}) |
||||
|
Loading…
Reference in new issue