diff --git a/src/bar.js b/src/bar.js index 024c068..9ed73f2 100644 --- a/src/bar.js +++ b/src/bar.js @@ -63,7 +63,7 @@ function update() { $('#score').text(info.score) if (info.subreddit) { - var subPath = '/r/'+info.subreddit + var subPath = ( info.subreddit.search('/r/') != 0 ? '/r/' ? '' ) + info.subreddit $('#subreddit') .text(subPath) .attr('href', 'http://www.reddit.com'+subPath)