diff --git a/themes/default/public/js/download.js b/themes/default/public/js/download.js index cc2ae06..f01f28d 100644 --- a/themes/default/public/js/download.js +++ b/themes/default/public/js/download.js @@ -144,20 +144,20 @@ document.addEventListener("DOMContentLoaded", () => { const isZipped = downloadDOM.querySelector(".description").dataset.isZipped === "true"; - let content; + let render; if (job.lufiFile.type.match(/^image\//) !== null) { - content = `${escapeHtml(
+          render = `<img alt=`; } else if (job.lufiFile.type.match(/^video\//) !== null) { - content = ``; + render = ``; } else if (job.lufiFile.type.match(/^audio\//) !== null) { - content = ``; + render = ``; } - if (content) { - downloadDOM.querySelector(".content").innerHTML = content; + if (render) { + downloadDOM.querySelector(".render").innerHTML = render; } if (isZipped) { diff --git a/themes/default/public/js/minified/download.min.js b/themes/default/public/js/minified/download.min.js index 89ff99b..a95f762 100644 --- a/themes/default/public/js/minified/download.min.js +++ b/themes/default/public/js/minified/download.min.js @@ -2732,18 +2732,18 @@ document.addEventListener("DOMContentLoaded", () => { downloadButtonDOM.href = blobURL; downloadButtonDOM.download = escapeHtml(job.lufiFile.name); const isZipped = downloadDOM.querySelector(".description").dataset.isZipped === "true"; - let content; + let render; if (job.lufiFile.type.match(/^image\//) !== null) { - content = `${escapeHtml(
+        render = `<img alt=`; } else if (job.lufiFile.type.match(/^video\//) !== null) { - content = ``; + render = ``; } else if (job.lufiFile.type.match(/^audio\//) !== null) { - content = ``; + render = ``; } - if (content) { - downloadDOM.querySelector(".content").innerHTML = content; + if (render) { + downloadDOM.querySelector(".render").innerHTML = render; } if (isZipped) { showZipContent(job.downloadedFile); diff --git a/themes/default/templates/render.html.ep b/themes/default/templates/render.html.ep index c42e3fd..4654fbc 100755 --- a/themes/default/templates/render.html.ep +++ b/themes/default/templates/render.html.ep @@ -115,6 +115,9 @@ <%= l('Get the file') %> + + +