Remove usage of jszip
This commit is contained in:
parent
9864439b70
commit
e826b07849
|
@ -191,6 +191,9 @@ const showZipContent = (zipFile) => {
|
||||||
const showZipContentDOM = document.getElementById("showZipContent");
|
const showZipContentDOM = document.getElementById("showZipContent");
|
||||||
|
|
||||||
const showZipContentDOMListener = () => {
|
const showZipContentDOMListener = () => {
|
||||||
|
showZipContentDOM.onclick = () => {};
|
||||||
|
|
||||||
|
document.body.style.cursor = "wait";
|
||||||
lufi.decompress(zipFile).andThen((files) => {
|
lufi.decompress(zipFile).andThen((files) => {
|
||||||
const newElement = document.createElement("div");
|
const newElement = document.createElement("div");
|
||||||
|
|
||||||
|
@ -231,11 +234,7 @@ const showZipContent = (zipFile) => {
|
||||||
element.addEventListener("click", elementListener);
|
element.addEventListener("click", elementListener);
|
||||||
|
|
||||||
showZipContentDOM.style.display = "none";
|
showZipContentDOM.style.display = "none";
|
||||||
|
document.body.style.cursor = "auto";
|
||||||
showZipContentDOM.removeEventListener(
|
|
||||||
"click",
|
|
||||||
showZipContentDOMListener
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue