Commit 1ebf67c
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 post1 parent 274b5d1 commit 1ebf67c
1 file changed
+372
-321
lines changed
0 commit comments