Skip to content

Commit 72fc5af

Browse files
committed
bistro: fix PWA start_url and bump SW cache to v2
- manifest.json: start_url was '#/' (invalid per W3C spec — must be a URL path), causing the installed PWA to fail to launch on mobile Share > Add to Home Screen. Changed to './' so the OS opens index.html and the hash router takes over. - sw.js: bump CACHE_NAME bistro-gem-v1 -> v2 so the activate handler flushes the old (broken) shell for users who already installed.
1 parent 299747b commit 72fc5af

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bistro/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Cămara Culinară",
33
"short_name": "Bistro Gem",
44
"description": "Cartea ta de bucate digitală, offline-first.",
5-
"start_url": "#/",
5+
"start_url": "./",
66
"display": "standalone",
77
"background_color": "#FCFAFA",
88
"theme_color": "#D65A31",

bistro/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const CACHE_NAME = 'bistro-gem-v1';
1+
const CACHE_NAME = 'bistro-gem-v2';
22
const ASSETS = [
33
'./',
44
'./index.html',

0 commit comments

Comments
 (0)