mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 18:11:16 +01:00
The browser cancels requests in flight on unload, so a save the tick has not uploaded goes out on pagehide through fetch with keepalive, which outlives the document but is capped at 64 KB. While a save is pending, beforeunload shows the leave prompt, the only way to keep a save above that cap, and runs ahead of EmulatorJS' own unload handler so a cancelled close keeps the game running. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MozJiij1oQbu12GvtAPBFR