Skip to content

Commit 8997792

Browse files
committed
fix issue #10
1 parent a3afe52 commit 8997792

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
@@ -98,7 +98,7 @@ document.addEventListener("DOMContentLoaded", () => {
9898
const repo = decodeURIComponent(urlParams.get('repo'));
9999
const path = decodeURIComponent(urlParams.get('path'));
100100
const token = decodeURIComponent(urlParams.get('token'));
101-
headerLabel.innerHTML = `Downloading: repo: ${owner}/${repo};\t Dir: ${path}`;
101+
headerLabel.innerHTML = `Downloading: repo: ${owner}/${repo}${path ? ';\t Dir: ' + path : ''}`;
102102
// if (!repoUrl.includes("github.com")) {
103103
// updateStatus("Invalid URL. Please enter a valid GitHub repository URL.");
104104
// return;
@@ -121,7 +121,7 @@ document.addEventListener("DOMContentLoaded", () => {
121121

122122
updateProgress(0);
123123
updateStatus(
124-
`Fetched ${fileList.length} files\nUser: ${owner}\nGithub Repository: ${owner}/${repo}\nFolder: ${path}\nSize: ${(
124+
`Fetched ${fileList.length} files\nUser: ${owner}\nGithub Repo: ${owner}/${repo}\nFolder: ${path}\nSize: ${(
125125
content.size /
126126
1024 /
127127
1024

0 commit comments

Comments
 (0)