From 98e5b49579c62b466bc2cdd11f6cdcea68ef9735 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Mon, 20 Jun 2016 15:59:53 +0200 Subject: [PATCH] Handle poster only if there is one --- index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.coffee b/index.coffee index 214785e..5020311 100644 --- a/index.coffee +++ b/index.coffee @@ -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