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:
@@ -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 }
|
||||
|
||||
@@ -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/",
|
||||
|
||||
Reference in New Issue
Block a user