Skip to content

Commit 21a77b8

Browse files
authored
fix this function because jeremy bad coding
1 parent 7b9e582 commit 21a77b8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib/sb-file-uploader-hoc.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ const SBFileUploaderHOC = function (WrappedComponent) {
320320
async readFolderHandleRecursively (folderHandle, zip, path = "") {
321321
for await (const handle of folderHandle.values()) {
322322
const handlePath = `${path}${handle.name}`;
323-
console.debug(handlePath)
324323

325324
if (handle.kind === "file") {
326325
const file = await handle.getFile();
@@ -330,8 +329,8 @@ const SBFileUploaderHOC = function (WrappedComponent) {
330329
// NOTE: Right now there's no reason to preserve directories, but the future save file format will use them.
331330
// See here for more info: https://docs.penguinmod.com/save-format/
332331
// we read the folder handle again
333-
const folder = zip.folder(handlePath);
334-
await this.readFolderHandleRecursively(handle, folder, `${handlePath}/`);
332+
zip.folder(handlePath)
333+
await this.readFolderHandleRecursively(handle, zip, `${handlePath}/`);
335334
}
336335
}
337336
}

0 commit comments

Comments
 (0)