b454c98758c3d661cce5532cf552063444a61165
All checks were successful
CI / build (pull_request) Successful in 33s
The beforeunload fallback in shell.html sends session-end data when the user closes the tab. Previously Module._analyticsLastStats was only set inside doEnd(), which runs when C explicitly ends a session. For the very common case of a player closing the tab mid-game (first session), the field was null and the fallback sent score 0. Add analytics_stash_stats() which serialises current stats into _analyticsLastStats every frame, so the beforeunload handler always has up-to-date data regardless of when the tab is closed.
Description
No description provided
Languages
C
95.2%
Python
2.3%
HTML
1.4%
Makefile
1%
Dockerfile
0.1%