diff --git a/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js b/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js index 358595d2485..5e7ef24c2ac 100644 --- a/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js +++ b/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js @@ -144,23 +144,21 @@ export function extractDataAttribute(str) { function videoHTML(token, opts) { const src = token.attrGet("src"); const origSrc = token.attrGet("data-orig-src"); - const preloadType = opts.secureMedia ? "none" : "metadata"; const dataOrigSrcAttr = origSrc !== null ? `data-orig-src="${origSrc}"` : ""; return `

${opts.alt}

-
`; } -function audioHTML(token, opts) { +function audioHTML(token) { const src = token.attrGet("src"); const origSrc = token.attrGet("data-orig-src"); - const preloadType = opts.secureMedia ? "none" : "metadata"; const dataOrigSrcAttr = origSrc !== null ? `data-orig-src="${origSrc}"` : ""; - return `