aboutsummaryrefslogtreecommitdiff
path: root/src/js/feed.js
blob: 87302f38d153d6c5b16ac6ce18006499759a6dee (plain)
1
2
3
4
5
6
7
8
9
function loadFeed(callback){
  var myRequest = new Request('/feed');
  fetch(myRequest).then(function(response) {
    return response.text();
  }).then(function(response) {
    document.getElementById("feed").innerHTML = response;
    callback()
  });
}