Skip to content

Commit 2506e83

Browse files
committed
fix issue #10
1 parent cde2ada commit 2506e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ async function mainLoop() {
711711
// var defaultBranch = response.data.default_branch;
712712
// repoUrl += `/tree/${defaultBranch}/${path}`;
713713
// }
714-
window.open((document.location.href.replace(document.location.search, '') + '/download/').replaceAll('//', '/') + `?owner=${encodeURIComponent(owner)}&repo=${encodeURIComponent(repo)}&path=${encodeURIComponent(path)}&token=${encodeURIComponent(token)}`);
714+
console.log((document.location.href.replace(document.location.search, '') + '/download/').replaceAll('//', '/') + `?owner=${encodeURIComponent(owner)}&repo=${encodeURIComponent(repo)}&path=${encodeURIComponent(path)}&token=${encodeURIComponent(token)}`);
715715

716716
// var repoDownloadURL = `https://${token}@github.com/${owner}/${repo}/archive/refs/heads/${defaultBranch}.zip`;
717717
// var a = document.createElement("a");

0 commit comments

Comments
 (0)