updating for feed saving
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user