enabling cors proxy
This commit is contained in:
parent
a75903bc07
commit
1e5c859ae8
|
@ -63,7 +63,7 @@ async function myfunc(key){
|
||||||
document.getElementById("feed").appendChild(feed_div)
|
document.getElementById("feed").appendChild(feed_div)
|
||||||
var parser = new RSSParser();
|
var parser = new RSSParser();
|
||||||
var countPosts = 0
|
var countPosts = 0
|
||||||
parser.parseURL(feeds[key]["link"], function(err, feed) {
|
parser.parseURL(CORS_PROXY + feeds[key]["link"], function(err, feed) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
feed.items.forEach(function(entry) {
|
feed.items.forEach(function(entry) {
|
||||||
if (countPosts < feeds[key]["limit"]) {
|
if (countPosts < feeds[key]["limit"]) {
|
||||||
|
|
Loading…
Reference in New Issue