Skip to content

Commit 7a3da7f

Browse files
Photoboothandi34
authored andcommitted
fix: prevent UI from hanging on unexpected errors during capture flow
Add comprehensive try/catch error handling to all critical paths in the photo capture flow. Previously, only .fail() callbacks had error handling while .done() callbacks and other functions could silently crash, leaving the UI stuck on the loader screen with takingPic=true. Changes: - Wrap errorPic cleanup in try/catch so page reload always fires - Add fallback timeout (5s) if notificationTimeout is NaN - Add try/catch to thrill(), takePic(), callTakePicApi .done(), callTakeVideoApi .done(), processPic success, processVideo success - Add missing timeout (25s) to callTakeVideoApi jQuery post
1 parent 5bfd8a2 commit 7a3da7f

File tree

1 file changed

+372
-321
lines changed

1 file changed

+372
-321
lines changed

0 commit comments

Comments
 (0)