Skip to content

Commit

Permalink
Handle poster only if there is one
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Jun 20, 2016
1 parent 1d8bb02 commit 98e5b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ module.exports = class Flatten
video =
type: 'video'
html: @tagToHtml tag, id
src: tag.attribs.poster
video.video = tag.attribs.src if tag.attribs.src
video.src = tag.attribs.poster if tag.attribs.poster
results.push video
when 'iframe'
return results unless tag.attribs
Expand Down

0 comments on commit 98e5b49

Please sign in to comment.