mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-28 11:57:16 -06:00
Closing or reloading the browser tab dropped unsaved documents without a word, while the desktop app asks before closing its window. The web shell now registers a beforeunload listener that has the browser show its own "Leave site?" prompt while a document has unsaved changes (the new PhotocraftApp::has_unsaved_work, refreshed every frame). Claude-Session: https://claude.ai/code/session_01UHgFEHEsefoQoBParH47JA Co-authored-by: Claude <noreply@anthropic.com>