switched circle post loader to use fetch instead of xml http

master
Kevin Froman 2020-03-24 00:21:46 -05:00
parent 83a1c09af7
commit 427a5355bc
1 changed files with 17 additions and 10 deletions

View File

@ -147,7 +147,13 @@ function getBlocks(){
}
var feedText = httpGet('/flow/getpostsbyboard/' + ch) // TODO switch to fetch
fetch('/flow/getpostsbyboard/' + ch, {
method: 'GET',
headers: {
"token": webpass
}})
.then((resp) => resp.text())
.then(function(feedText) {
var blockList = feedText.split(',')
for (i = 0; i < blockList.length; i++){
@ -160,6 +166,7 @@ function getBlocks(){
}
}
sortEntries()
})
}
function loadMessage(blockHash, blockList, count, channel){