Browse files

[http-info] fix for undefined description

  • Loading branch information...
1 parent 5e279d2 commit 89363488ba7ee0979affd989ca5292f4cc55dd65 @ajacksified ajacksified committed Jul 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/scripts/http-info.coffee
View
5 src/scripts/http-info.coffee
@@ -30,8 +30,9 @@ module.exports = (robot) ->
unless errors
$ = window.$
title = $('title').text()
- description = "\n" + $('meta[name=description]').attr("content")
-
+ description = $('meta[name=description]').attr("content") || ""
+ description = "\n" + description if description
+
if title
msg.send "#{title}#{description}"
)

0 comments on commit 8936348

Please sign in to comment.