Skip to content

Commit

Permalink
Style(#75) : 주석제거
Browse files Browse the repository at this point in the history
  • Loading branch information
KangBoSeok-kor committed Dec 11, 2024
1 parent e8dd28b commit 062a78f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/place/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ const PlacePage = () => {
navigator.geolocation.getCurrentPosition(
(position) => {
const { latitude, longitude } = position.coords;
router.push(`/place/placesearch?lat=${latitude}&lng=${longitude}`); // lat, lng 값을 URL로 전달
router.push(`/place/placesearch?lat=${latitude}&lng=${longitude}`);
},
() => {
alert("현재 위치를 가져올 수 없습니다.");
router.push(`/place/placesearch`); // 위치를 가져오지 못했을 경우 기본 경로로 이동
router.push(`/place/placesearch`);
}
);
} else {
alert("Geolocation을 지원하지 않는 브라우저입니다.");
router.push(`/place/placesearch`); // Geolocation이 없을 경우 기본 경로로 이동
router.push(`/place/placesearch`);
}
};

Expand Down

0 comments on commit 062a78f

Please sign in to comment.