updating for feed saving

This commit is contained in:
John Facey
2021-12-13 18:13:10 -06:00
parent 4b67d45595
commit b0e5400b07
2 changed files with 8 additions and 1 deletions

View File

@@ -13,6 +13,12 @@ exports.addSource = function(title,source){
title: `${title}`,
link: `${source}`
}
for (i=0; i<feeds.length; i++){
if (feeds[i].link == source){
return;
}
}
feeds.push(linkData);
}