d873c96ae3afe1e375e6e4f37f428ab569106e71
On desktop browsers without GPS hardware, getCurrentPosition with enableHighAccuracy:true can silently hang after the user grants permission — neither success nor error callback fires. Previous safety timeout (12s) only reset the button without sending the punch request, leaving users stuck. Now: - enableHighAccuracy: false (faster fallback to IP-based location) - Browser timeout reduced to 5s - Safety timeout reduced to 6s and automatically calls submitPunch without GPS data instead of just showing an error - Wrapped success callback in try/catch as additional safeguard Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Description
No description provided