Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit a00185f

Browse files
author
Nick Litwin
committed
Fix cannot read rss of null error
1 parent 33a08ed commit a00185f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/blog.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
$http.get(CONSTANTS.BLOG_LOCATION)
2020
.success(function(data) {
2121
// parse the blog rss feed using x2js
22-
var rss = x2js.xml_str2json(data).rss;
22+
var rss = x2js.xml_str2json(data.trim()).rss;
2323

2424
var result = rss.channel.item;
2525

0 commit comments

Comments
 (0)