Commit cc4f44b
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 b0cab60 commit cc4f44b
1 file changed
+372
-321
lines changed
0 commit comments