Skip to content

Commit 98e5b49

Browse files
committed
Handle poster only if there is one
1 parent 1d8bb02 commit 98e5b49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ module.exports = class Flatten
201201
video =
202202
type: 'video'
203203
html: @tagToHtml tag, id
204-
src: tag.attribs.poster
205204
video.video = tag.attribs.src if tag.attribs.src
205+
video.src = tag.attribs.poster if tag.attribs.poster
206206
results.push video
207207
when 'iframe'
208208
return results unless tag.attribs

0 commit comments

Comments
 (0)