web/DonateShareCard: hide share button if user agent doesn't support it

This commit is contained in:
wukko 2024-08-09 14:52:22 +06:00
parent e7386234bc
commit ffea8e6f2e
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -13,6 +13,7 @@
import CobaltQr from "$lib/icons/CobaltQR.svelte"; import CobaltQr from "$lib/icons/CobaltQR.svelte";
import CopyIcon from "$components/misc/CopyIcon.svelte"; import CopyIcon from "$components/misc/CopyIcon.svelte";
import { device } from "$lib/device";
const cobaltUrl = "https://cobalt.tools/"; const cobaltUrl = "https://cobalt.tools/";
@ -50,6 +51,7 @@
copy copy
</button> </button>
{#if device.supports.share}
<button <button
id="action-button-share" id="action-button-share"
class="action-button" class="action-button"
@ -60,6 +62,7 @@
</div> </div>
{$t("button.share")} {$t("button.share")}
</button> </button>
{/if}
<button <button
id="action-button-github" id="action-button-github"