Skip to content

Commit

Permalink
fix: add test for new logs
Browse files Browse the repository at this point in the history
  • Loading branch information
qx6ghqkz committed Nov 1, 2024
1 parent 35cb569 commit c29f3a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,11 @@ <h1 class="display-4">gallery-dl</h1>
const box = document.getElementById("box");
const response = await fetch("gallery-dl/logs");
const logs = await response.text();
box.textContent = logs;
box.scrollTop = box.scrollHeight;

if (box.textContent != logs) {
box.textContent = logs;
box.scrollTop = box.scrollHeight;
}
}

fetchLogs();
Expand Down

0 comments on commit c29f3a4

Please sign in to comment.