From 8eac56844606bd2a7501f9e0284767c2d5fc26d0 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Mon, 9 Mar 2026 14:06:13 +0100 Subject: [PATCH] Do not error log if nav share not present --- web/components/buttons/copy-link-button.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/components/buttons/copy-link-button.tsx b/web/components/buttons/copy-link-button.tsx index a7b1c051..02ffa5ca 100644 --- a/web/components/buttons/copy-link-button.tsx +++ b/web/components/buttons/copy-link-button.tsx @@ -170,7 +170,9 @@ export async function mobileShare(url: string) { }) return true } catch (e) { - console.error('Failed to share', e) + if (!(e instanceof Error && e.message.includes('navigator.share is not a function'))) { + console.error('Failed to share', e) + } return false } }