Add PWA manifest, service worker, and install hint.

Enables home-screen installation with per-viewer scope and platform-specific guidance in EN/DE.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-20 11:08:32 +02:00
parent 6df10e5498
commit 562a229fa0
14 changed files with 287 additions and 3 deletions
+2
View File
@@ -70,6 +70,7 @@ async function init() {
await I18n.init();
applyStaticI18n();
setupLanguage();
await Pwa.init();
setupViewerBanner();
setupNav();
setupUpload();
@@ -123,6 +124,7 @@ function setupLanguage() {
sel.addEventListener("change", async (e) => {
await I18n.setPreference(e.target.value);
applyStaticI18n();
Pwa.refreshHint();
resetLocaleDependentPanels();
if (state.data) renderAll();
const gs = document.getElementById("global-search");