diff --git a/helpers/handlebarsHelpers.js b/helpers/handlebarsHelpers.js index 57f501d5..2a75e385 100644 --- a/helpers/handlebarsHelpers.js +++ b/helpers/handlebarsHelpers.js @@ -48,20 +48,17 @@ module.exports = { addTwitterCard (mimeType, source, embedUrl, directFileUrl) { let basicTwitterTags = ``; if (mimeType === 'video/mp4') { - return new Handlebars.SafeString( - `${basicTwitterTags} - - - - - - - ` - ); + let twitterName = ''; + let twitterPlayer = ``; + let twitterPlayerWidth = ''; + let twitterTextPlayerWidth = ''; + let twitterPlayerHeight = ''; + let twitterPlayerStream = ``; + let twitterPlayerStreamContentType = ''; + return new Handlebars.SafeString(`${basicTwitterTags} ${twitterName} ${twitterPlayer} ${twitterPlayerWidth} ${twitterTextPlayerWidth} ${twitterPlayerHeight} ${twitterPlayerStream} ${twitterPlayerStreamContentType}`); } else { - return new Handlebars.SafeString( - `${basicTwitterTags} ` - ); + let twitterCard = ''; + return new Handlebars.SafeString(`${basicTwitterTags} ${twitterCard}`); } }, ifConditional (varOne, operator, varTwo, options) {