Skip to content

Commit

Permalink
remove trailing spaces in title
Browse files Browse the repository at this point in the history
martinkadlec0 committed Sep 5, 2013
1 parent 496a3cc commit 6251861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bg.js
Original file line number Diff line number Diff line change
@@ -900,7 +900,7 @@ function getFeedTitle(xml) {
title = xml.querySelector('channel > link, feed > link, rss > link');
}

return title ? title.textContent || 'rss' : 'rss';
return title && title.textContent ? title.textContent.trim() || 'rss' : 'rss';
}

function rssGetDate(node) {

0 comments on commit 6251861

Please sign in to comment.