This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
Cache edits to prevent data loss on window unload #6792
Labels
p5
Non-Priority: Contributions accepted
Hey there,
the other day I was translating some MDN web docs into German and followed a link by accident.
Using Firefox' back button made me loose all my changes.
Is there a way to prevent loss of data? E.g. by having a
confirm()
onbeforeunload
or saving it inlocalStorage
until the user is saving / cancelling the changes?In the end, I had to redo my translation five times ._.
The text was updated successfully, but these errors were encountered: