Skip to content

Commit

Permalink
Remove debug code & limit XML feed
Browse files Browse the repository at this point in the history
  • Loading branch information
KawaiiZapic committed Nov 17, 2020
1 parent dc6d552 commit 34bd016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ feed.addEventListener("load", function () {
if(!xml){
throw new Error();
}
window.xml = xml;
xml = xml.querySelectorAll("channel item");
var data = [];
xml.forEach(function (v){
xml.forEach(function (v,i){
if(i > 7){ return; }
data.push({
"link": v.querySelector("link").innerHTML,
"timestamp": dateParser(v.querySelector("pubDate").innerHTML),
Expand Down

0 comments on commit 34bd016

Please sign in to comment.