Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
HamsterStudent committed Nov 10, 2023
1 parent 014a120 commit 95b893a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script>
window.aa.showMessage("hamster is good");
</script>
</body>
</html>
10 changes: 10 additions & 0 deletions Frontend/src/pages/Guide/Guide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ const Guide = () => {
const enterName = location.state;
const [name, setName] = useState(enterName);

const [isAnd, setIsAnd] = useState("");

const data = ["재난대처", "응급처치", "생존배낭"];

// useEffect(() => {
Expand All @@ -93,6 +95,14 @@ const Guide = () => {
// localStorage.setItem("tabs", innerText);
};

// 안드로이드 구분?
useEffect(() => {
// userAgent에 ios // android 가 있는 지 확인해줍니다.
const iOS = navigator.userAgent.match(/iOS_App/i);
const Android = navigator.userAgent.match(/Android_App/i);
if (Android) setIsAnd("Android_App");
}, []);

return (
<GuideWrap>
<Header title="가이드" />
Expand Down

0 comments on commit 95b893a

Please sign in to comment.