Skip to content

Commit 03e23a2

Browse files
committed
fix issue #10
1 parent f6efdaf commit 03e23a2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

download/fetcher.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ document.addEventListener("DOMContentLoaded", () => {
1010
const fileListWrapper = document.getElementById("fileListWrapper");
1111
// const toggleTokenBtn = document.getElementById("toggleTokenBtn");
1212
// const tokenInfo = document.getElementById("tokenInfo");
13+
const headerLabel = document.getElementById('header-label');
1314

1415
let fetchedFiles = [];
1516
let progressPercentage = 0;
@@ -97,7 +98,7 @@ document.addEventListener("DOMContentLoaded", () => {
9798
const repo = decodeURIComponent(urlParams.get('repo'));
9899
const path = decodeURIComponent(urlParams.get('path'));
99100
const token = decodeURIComponent(urlParams.get('token'));
100-
101+
headerLabel.innerHTML = `Downloading: repo: ${owner}/${repo};\t Dir: ${path}`;
101102
// if (!repoUrl.includes("github.com")) {
102103
// updateStatus("Invalid URL. Please enter a valid GitHub repository URL.");
103104
// return;

download/index.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
</head>
1717
<body>
1818
<div class="container">
19-
<!-- <header>
20-
<h1 aria-label="Heading">GitRepo Zip Fetcher</h1>
21-
<p aria-label="Description">Effortlessly download GitHub repositories and folders</p>
22-
</header>-->
19+
<header>
20+
<h3 aria-label="Heading" id="header-label"></h3>
21+
<!-- <h1 aria-label="Heading">GitRepo Zip Fetcher</h1> -->
22+
<!-- <p aria-label="Description">Effortlessly download GitHub repositories and folders</p>-->
23+
</header>
2324
<main>
2425
<!--
2526
<div class="input-wrapper">

0 commit comments

Comments
 (0)