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

@@ -1198,7 +1198,11 @@ function buildAbsoluteShareUrl(path?: string | null) {
return new URL(normalizedPath, window.location.origin).toString();
}
function createChatShareManifestObjectUrl(pathname: string, title?: string | null) {
function createChatShareManifestHref(pathname: string, title?: string | null) {
if (isAppleMobileDevice()) {
return '/chat-share.webmanifest';
}
const normalizedTitle = title?.trim();
return createInstallManifestObjectUrl({
startPath: pathname,
@@ -3367,7 +3371,7 @@ export function ChatSharePage() {
themeColor: resolveSharePlayAppInstallThemeColor(activeInstallAppId),
backgroundColor: '#eff5ff',
})
: createChatShareManifestObjectUrl(sharePathname, snapshot?.conversation.title);
: createChatShareManifestHref(sharePathname, snapshot?.conversation.title);
const restoreManifest = activeInstallAppEntry
? swapInstallDocumentMetadata({
manifestHref: manifestObjectUrl,
@@ -3378,7 +3382,7 @@ export function ChatSharePage() {
return () => {
restoreManifest();
if (manifestObjectUrl) {
if (manifestObjectUrl.startsWith('blob:')) {
window.URL.revokeObjectURL(manifestObjectUrl);
}
};