Add PWA support for install-to-home-screen

Adds manifest.json, service worker with static asset caching,
resized cat icons, and meta tags for iOS/Android installability.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
ryan
2026-03-17 20:16:27 -04:00
parent 6917f331d8
commit 0f88d211de
7 changed files with 76 additions and 1 deletions

View File

@@ -11,3 +11,9 @@ if (rootEl) {
</React.StrictMode>,
);
}
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js').catch(console.warn);
});
}