Upload files to "/"

This commit is contained in:
2026-07-27 00:45:14 +00:00
parent fbc2fb9a65
commit d1ea7b4826
3 changed files with 15 additions and 3 deletions
+5 -1
View File
@@ -206,6 +206,9 @@
const LIMIT = 1000;
const results = [];
// Total search time only
const t0 = performance.now();
try {
setStatus(`searching for "${term}"...`);
outEl.textContent = `Searching: "${term}"`;
@@ -282,7 +285,8 @@
`Found ${results.length} match(es) for "${term}" (showing up to ${LIMIT}):\n\n` + lines.join("\n");
}
setStatus("done.");
const t1 = performance.now();
setStatus(`done. Search time: ${(t1 - t0).toFixed(0)} ms`);
} catch (e) {
console.error(e);
setStatus("failed.");