shorten pwa short_name to AGW, fix pwa update reload fallback

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-02 21:50:43 +01:00
parent fa02c4b71f
commit 51c8c9e4f6
2 changed files with 3 additions and 3 deletions

View File

@@ -41,9 +41,9 @@ export function usePwaUpdate() {
async function applyUpdate() {
if (updateSW) {
await updateSW(true)
} else {
window.location.reload()
}
// fallback: if skipWaiting + controllerchange didn't reload, force it
setTimeout(() => window.location.reload(), 1000)
}
return { needRefresh, checkForUpdate, applyUpdate }

View File

@@ -24,7 +24,7 @@ export default defineConfig({
registerType: "prompt",
manifest: {
name: "Abgeordnetenwatch",
short_name: "Abgwatch",
short_name: "AGW",
description: "Track Bundestag and Landtag votes, follow topics and politicians.",
start_url: "/agw/",
scope: "/agw/",