apostrophe-rss
Advanced tools
Comparing version 0.5.14 to 0.5.15
22
index.js
@@ -52,10 +52,18 @@ var feedparser = require('feedparser'); | ||
self.renderWidget = function(data) { | ||
if (data.item._ajax) { | ||
// We've decided to let the browser | ||
// fetch this with a separate AJAX requet | ||
try { | ||
if (data.item._ajax) { | ||
// We've decided to let the browser | ||
// fetch this with a separate AJAX requet | ||
return ''; | ||
} else { | ||
// We're rendering it now, during the page load, | ||
// server side | ||
return self.render('rss', data); | ||
} | ||
} catch (e) { | ||
// No fatal crashes on other people's bad data please | ||
console.error('RSS feed rendering error:'); | ||
console.error(e); | ||
console.error(data.item); | ||
return ''; | ||
} else { | ||
// We're rendering it now, during the page load, | ||
// server side | ||
return self.render('rss', data); | ||
} | ||
@@ -62,0 +70,0 @@ }; |
{ | ||
"name": "apostrophe-rss", | ||
"version": "0.5.14", | ||
"version": "0.5.15", | ||
"description": "Adds an RSS feed widget to the Apostrophe content management system", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10492
205