Skip to content

Commit

Permalink
[Test] #13 - 인스타 앱으로 사진 직접 업로드 부분 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
sayyyho committed Sep 23, 2024
1 parent a6bec44 commit 8fc4ea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/shareInsta.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ const captureAndShare = (element, buttons) => {
setTimeout(() => {
console.log(imageUri);
if (isIOS) {
window.location.replace("https://www.instagram.com/create/story");
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.href = "https://www.instagram.com/create/story";
window.location.replace("https://www.instagram.com/create/story");
}
}, 2500); // 2.5초 대기
});
Expand Down

0 comments on commit 8fc4ea9

Please sign in to comment.