From 3b1e9fa667b1fbc12cd05aaec84537c471ee5b23 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Mar 2026 04:28:19 +0000 Subject: [PATCH 1/2] Initial plan From 7114b7370f2d70c0f656b1ce971f115616585686 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Mar 2026 04:30:24 +0000 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20=EC=9D=B8=EC=8A=A4=ED=83=80?= =?UTF-8?q?=EA=B7=B8=EB=9E=A8=20=EB=94=A5=EB=A7=81=ED=81=AC=20=EB=A7=A4?= =?UTF-8?q?=EC=A7=81=20=EB=84=98=EB=B2=84=EB=A5=BC=20=EC=83=81=EC=88=98?= =?UTF-8?q?=EB=A1=9C=20=EC=B6=94=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: AndyH0ng <60703412+AndyH0ng@users.noreply.github.com> --- src/utils/snsShare.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/snsShare.ts b/src/utils/snsShare.ts index 93bc12a4..12129c9c 100644 --- a/src/utils/snsShare.ts +++ b/src/utils/snsShare.ts @@ -49,6 +49,8 @@ declare global { const DEFAULT_SHARE_TEXT = '내 발표를 확인하고 피드백을 남겨주세요!'; const INSTAGRAM_WEB_URL = 'https://www.instagram.com/'; +const INSTAGRAM_DEEPLINK_TIMEOUT_MS = 1800; +const INSTAGRAM_DEEPLINK_FALLBACK_DELAY_MS = 1200; function encode(value: string) { return encodeURIComponent(value); @@ -104,10 +106,10 @@ function openInstagramStoryDeepLink(qrCodeUrl: string) { // 딥링크 실패(앱 미설치/미지원) 시 웹 인스타로 fallback window.setTimeout(() => { - if (Date.now() - start < 1800) { + if (Date.now() - start < INSTAGRAM_DEEPLINK_TIMEOUT_MS) { openNewTab(INSTAGRAM_WEB_URL); } - }, 1200); + }, INSTAGRAM_DEEPLINK_FALLBACK_DELAY_MS); } /** Kakao SDK 스크립트를 동적으로 로드 */