From e826b0784988a494107f87414a12fc1c54d42018 Mon Sep 17 00:00:00 2001 From: Booteille Date: Wed, 13 Nov 2024 19:33:40 +0100 Subject: [PATCH] Remove usage of jszip --- themes/default/public/js/lufi-down.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/themes/default/public/js/lufi-down.js b/themes/default/public/js/lufi-down.js index e3cb8a9..9ae8589 100755 --- a/themes/default/public/js/lufi-down.js +++ b/themes/default/public/js/lufi-down.js @@ -191,6 +191,9 @@ const showZipContent = (zipFile) => { const showZipContentDOM = document.getElementById("showZipContent"); const showZipContentDOMListener = () => { + showZipContentDOM.onclick = () => {}; + + document.body.style.cursor = "wait"; lufi.decompress(zipFile).andThen((files) => { const newElement = document.createElement("div"); @@ -231,11 +234,7 @@ const showZipContent = (zipFile) => { element.addEventListener("click", elementListener); showZipContentDOM.style.display = "none"; - - showZipContentDOM.removeEventListener( - "click", - showZipContentDOMListener - ); + document.body.style.cursor = "auto"; }); }); };