Fix build script not using $OUT_PATH
This commit is contained in:
parent
794787a4be
commit
246cbf82cf
6 changed files with 55 additions and 29 deletions
|
|
@ -1,16 +0,0 @@
|
|||
const COUNT = document.getElementById("count")!;
|
||||
const QUEUE = document.getElementById("queue")!;
|
||||
const REFRESH_SECONDS = 10;
|
||||
|
||||
function update() {
|
||||
fetch("table")
|
||||
.then(response => response.text())
|
||||
.then(text => {
|
||||
QUEUE.innerHTML = text;
|
||||
let count = QUEUE.querySelectorAll("tbody tr").length;
|
||||
COUNT.textContent = String(count);
|
||||
document.title = document.title.replace(/^queue \(\d+\)/, `queue (${count})`);
|
||||
});
|
||||
}
|
||||
|
||||
setInterval(update, REFRESH_SECONDS * 1000);
|
||||
Loading…
Add table
Add a link
Reference in a new issue