the greatest

This commit is contained in:
thrhymes
2025-12-24 23:07:56 +01:00
parent b7cb257d05
commit 4605b51236
5 changed files with 160 additions and 132 deletions

View File

@@ -4,7 +4,7 @@
* - Install/Update Overlay mit beforeinstallprompt.prompt()
*/
const APP_VERSION = "2025.12.24.12";
const APP_VERSION = "2025.12.24.19";
const TOKEN = "T9e7WESBXxy6rSD";
const BASE = "https://home.x-s.at";
const SHARE_DAV = `${BASE}/public.php/dav/files/${TOKEN}`;
@@ -247,10 +247,12 @@ function renderList(items, currentDir) {
if (pdfs.length === 0) {
setStatus("Keine PDFs gefunden.");
const cnt = $("titleCount"); if (cnt) cnt.textContent = "(0)";
return;
}
setStatus(`PDFs: ${pdfs.length}`);
setStatus("");
const cnt = $("titleCount"); if (cnt) cnt.textContent = `(${pdfs.length})`;
for (const it of pdfs) {
const a = document.createElement("a");
@@ -308,6 +310,7 @@ async function loadList() {
} catch (e) {
console.error(e);
setStatus("Fehler");
const cnt = $("titleCount"); if (cnt) cnt.textContent = "";
showError(String(e && e.message ? e.message : e));
}
}