fix: 홈 화면에 추가 카드·메뉴를 휴대폰(아이폰·안드로이드·앱 안 브라우저)에서만 보이게
This commit is contained in:
1 parent
e5716c0c7c
commit
77d29ce24f
3 files changed
+12
-7
No files matched your search
@@ -37,6 +37,9 @@ export function platform(): Platform {
|
||||
return 'other'
|
||||
}
|
||||
|
||||
/** 휴대폰에서만 홈 화면 추가를 권한다 (PC 는 안 보임) */
|
||||
export const onPhone = () => ['ios', 'android', 'inapp'].includes(platform())
|
||||
|
||||
/** 설치창을 바로 띄울 수 있는지 (안드로이드 Chrome 등) */
|
||||
export function useCanPrompt() {
|
||||
return useSyncExternalStore(
|
||||
|
||||
Reference in new issue
Block a user