diff --git a/src/screens/GalleryDetail.tsx b/src/screens/GalleryDetail.tsx index 5953137..dbb14de 100644 --- a/src/screens/GalleryDetail.tsx +++ b/src/screens/GalleryDetail.tsx @@ -49,7 +49,9 @@ export default function GalleryDetail({ client, generationId, back }: Props) { if (confirming) return if (input === 'd') setConfirming(true) if (input === 'o' && generation) { - open(`https://www.pixelmuse.studio/g/${generation.id}`) + void open(`https://www.pixelmuse.studio/g/${generation.id}`).catch((err: unknown) => { + setError(err instanceof Error ? err.message : 'Failed to open browser') + }) } })