Skip to content

Commit f6efdaf

Browse files
committed
fix issue #10
1 parent d2d0f72 commit f6efdaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

download/fetcher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ document.addEventListener("DOMContentLoaded", () => {
114114

115115
updateStatus("Compressing files...");
116116
const content = await zip.generateAsync({ type: "blob" });
117-
saveAs(content, `${path ? path.replace(/\/|%20/g, "-") : repo}.zip`);
117+
saveAs(content, `${path ? repo+'_'+path.replace(/\/|%20/g, "-") : repo}.zip`);
118118

119119
const fileList = zip.file(/.*/);
120120

121121
updateProgress(0);
122122
updateStatus(
123-
`Fetched ${fileList.length} files\nUser: ${owner}\nRepository: https://github.com/${owner}/${repo}\nFolder: ${path}\nSize: ${(
123+
`Fetched ${fileList.length} files\nUser: ${owner}\nGithub Repository: ${owner}/${repo}\nFolder: ${path}\nSize: ${(
124124
content.size /
125125
1024 /
126126
1024

0 commit comments

Comments
 (0)