From ffea8e6f2e692586266b2859bedcf0a7d1c8fb66 Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 9 Aug 2024 14:52:22 +0600 Subject: [PATCH] web/DonateShareCard: hide share button if user agent doesn't support it --- .../components/donate/DonateShareCard.svelte | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/web/src/components/donate/DonateShareCard.svelte b/web/src/components/donate/DonateShareCard.svelte index 87ec2109..a2c3221e 100644 --- a/web/src/components/donate/DonateShareCard.svelte +++ b/web/src/components/donate/DonateShareCard.svelte @@ -13,6 +13,7 @@ import CobaltQr from "$lib/icons/CobaltQR.svelte"; import CopyIcon from "$components/misc/CopyIcon.svelte"; + import { device } from "$lib/device"; const cobaltUrl = "https://cobalt.tools/"; @@ -50,16 +51,18 @@ copy - + {#if device.supports.share} + + {/if}