chore: test deploy snapshot

This commit is contained in:
2026-05-27 11:57:01 +09:00
parent 215648bd8d
commit 4984d74d39
5 changed files with 45 additions and 11 deletions

View File

@@ -29,6 +29,7 @@
};
let installMetadata = null;
let staticManifestHref = null;
if (pathname === '/play/apps') {
const appId = searchParams.get('app')?.trim() ?? '';
@@ -59,6 +60,7 @@
themeColor: '#165dff',
scope: pathname,
};
staticManifestHref = '/chat-share.webmanifest';
}
if (!installMetadata) {
@@ -93,10 +95,11 @@
],
};
const manifestBlob = new Blob([JSON.stringify(manifest, null, 2)], {
type: 'application/manifest+json',
});
const manifestHref = URL.createObjectURL(manifestBlob);
const manifestHref = staticManifestHref ?? URL.createObjectURL(
new Blob([JSON.stringify(manifest, null, 2)], {
type: 'application/manifest+json',
}),
);
let manifestLink = document.querySelector('link[rel="manifest"]');
if (!manifestLink) {