Skip to content

Commit

Permalink
fixed error when no link discussion present
Browse files Browse the repository at this point in the history
  • Loading branch information
majuscule committed Feb 6, 2013
1 parent d1cb9ab commit 99df928
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions share/spice/hacker_news/spice.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ function ddg_spice_hacker_news(res) {
}

function discussion (res, i) {


if (!HN_Global.result["discussion"]) return;

var text = shorten(HN_Global.result["text"], 200);

var div = d.createElement('div');
Expand Down Expand Up @@ -206,4 +208,4 @@ function getSubmissions(res,limit) {
i++;
}
return temp;
}
}

0 comments on commit 99df928

Please sign in to comment.