Skip to content

Commit

Permalink
Merge pull request #10 from DDD-Community/feat/#9
Browse files Browse the repository at this point in the history
[feat/#9] 권한 요청 로직 추가
  • Loading branch information
lkhoony authored Jul 16, 2024
2 parents 9c466e9 + 4664417 commit 2c215f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/PoseDetector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const PoseDetector: React.FC = () => {
const timer = useRef<any>(null)
const canvasRef = useRef<HTMLCanvasElement>(null)

const { showNotification } = usePushNotification()
const { requestNotificationPermission, showNotification } = usePushNotification()

const requestApi = (delay: number): Promise<void> => new Promise((resolve) => setTimeout(resolve, delay))

Expand Down Expand Up @@ -108,6 +108,7 @@ const PoseDetector: React.FC = () => {
}

useEffect(() => {
requestNotificationPermission()
getScript()
}, [])

Expand Down

0 comments on commit 2c215f8

Please sign in to comment.