mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-29 13:00:12 +02:00
web/DonateShareCard: hide share button if user agent doesn't support it
This commit is contained in:
parent
e7386234bc
commit
ffea8e6f2e
@ -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,6 +51,7 @@
|
||||
copy
|
||||
</button>
|
||||
|
||||
{#if device.supports.share}
|
||||
<button
|
||||
id="action-button-share"
|
||||
class="action-button"
|
||||
@ -60,6 +62,7 @@
|
||||
</div>
|
||||
{$t("button.share")}
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
<button
|
||||
id="action-button-github"
|
||||
|
Loading…
x
Reference in New Issue
Block a user