feat(pwa): register native Android Web Share Target with dedicated /share route, explicit MIME types, and seamless note opening

This commit is contained in:
chrisf committed 2026-10-22 19:26:18 -06:00
1 parent 8907b4c494
commit fb3c01c6ae
4 files changed
+307 -6

No files matched your search

+4 -4
View File
@@ -1,5 +1,5 @@
// Everclone PWA Service Worker (v1.0.0)
const CACHE_NAME = 'everclone-cache-v1';
// Everclone PWA Service Worker (v1.1.0)
const CACHE_NAME = 'everclone-cache-v2';
const PRECACHE_URLS = [
'/',
'/manifest.json',
@@ -38,8 +38,8 @@ self.addEventListener('fetch', (event) => {
const url = new URL(event.request.url);
// Bypass API endpoints and file downloads to always get fresh data
if (url.pathname.startsWith('/api/')) {
// Bypass API endpoints, hooks, and share endpoint to always get fresh data
if (url.pathname.startsWith('/api/') || url.pathname === '/share') {
return;
}