5517834dd48ac0aaa61c8a8749a2589ef54f9871
All checks were successful
CI / build (pull_request) Successful in 32s
Module._analyticsLastStats was only set when the C shutdown path ran (analytics_session_end). When a player closes the browser tab mid-game, the beforeunload fallback found _analyticsLastStats null and sent score 0 to the backend. Add analytics_stash_stats() which updates _analyticsLastStats every ~1 second during gameplay. The beforeunload handler now always has current stats to send.
Description
No description provided
Languages
C
95.2%
Python
2.3%
HTML
1.4%
Makefile
1%
Dockerfile
0.1%