mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-27 09:23:03 +03:00
check navigator.share exists before offering it
This commit is contained in:
@@ -201,7 +201,7 @@ function ServerCardInPage() {
|
||||
className="flex flex-col-reverse sm:flex-row sm:flex-wrap justify-center sm:justify-between sm:gap-2 gap-4">
|
||||
{server?.id && (
|
||||
<div className="flex items-center justify-center sm:gap-5 gap-2">
|
||||
{location.protocol === "https:" ? (
|
||||
{location.protocol === "https:" && navigator.share ? (
|
||||
<p className="text-sm text-blue-500" role="button"
|
||||
onClick={() => navigator.share({url: shareUrl})}>
|
||||
Share
|
||||
|
||||
Reference in New Issue
Block a user