From 9864439b700e1f8957764a75fa3e791860933419 Mon Sep 17 00:00:00 2001 From: Booteille Date: Wed, 13 Nov 2024 19:19:04 +0100 Subject: [PATCH] Remove usage of jszip --- themes/default/public/js/lufi-down.js | 27 ++++++++++++------------- themes/default/templates/index.html.ep | 1 - themes/default/templates/render.html.ep | 1 - 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/themes/default/public/js/lufi-down.js b/themes/default/public/js/lufi-down.js index 8a1b7ab..e3cb8a9 100755 --- a/themes/default/public/js/lufi-down.js +++ b/themes/default/public/js/lufi-down.js @@ -187,23 +187,23 @@ const updateProgress = (lufiFile) => { document.getElementById("pbt").innerHTML = `${percent}%`; }; -const showZipContent = (blob) => { +const showZipContent = (zipFile) => { const showZipContentDOM = document.getElementById("showZipContent"); const showZipContentDOMListener = () => { - JSZip.loadAsync(blob).then((zip) => { + lufi.decompress(zipFile).andThen((files) => { const newElement = document.createElement("div"); let innerHTML = `

${i18n.zipContent}