Skip to content

Commit

Permalink
[Fix] #13 - 인스타 앱으로 사진 직접 다운로드
Browse files Browse the repository at this point in the history
  • Loading branch information
sayyyho committed Sep 23, 2024
1 parent 8fc4ea9 commit 124778a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/utils/shareInsta.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,5 @@ const captureAndShare = (element, buttons) => {

// 캡처 후 버튼 다시 보이게
buttons.forEach((button) => (button.style.visibility = "visible"));

setTimeout(() => {
console.log(imageUri);
if (isIOS) {
window.location.replace("instagram-stories://share");
} else if (isAndroid) {
window.location.replace(
"intent://instagram.com/#Intent;scheme=https;package=com.instagram.android;end"
);
} else {
// 인스타그램 웹으로 리디렉션
window.location.replace("https://www.instagram.com/create/story");
}
}, 2500); // 2.5초 대기
});
};

0 comments on commit 124778a

Please sign in to comment.