From b60d999dc36edfadf63db070d1880a0b73034b19 Mon Sep 17 00:00:00 2001 From: ljh0608 Date: Mon, 2 Sep 2024 19:39:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20navigator.share=20=EC=82=AC=EC=9A=A9=20?= =?UTF-8?q?=EA=B0=80=EB=8A=A5=20=EC=97=AC=EB=B6=80=20=20=EB=A0=8C=EB=8D=94?= =?UTF-8?q?=EB=A7=81=20=ED=99=98=EA=B2=BD=EC=97=90=EC=84=9C=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/cueCard/CueCard.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pages/cueCard/CueCard.tsx b/src/pages/cueCard/CueCard.tsx index 0cbc632..8ef194c 100644 --- a/src/pages/cueCard/CueCard.tsx +++ b/src/pages/cueCard/CueCard.tsx @@ -29,16 +29,15 @@ function CueCard() { useEffect(() => { const handleBtnText = async () => { - try { - await navigator.share(); + if (navigator.share) { setBtnText('링크 공유하기'); - } catch { + } else { setBtnText('링크 복사하기'); } }; handleBtnText(); - }); + }, []); return (