I had the joy of loosing my whole code due to my browsers reaction on the backspace button (back in history) twice today.
Thus i made a little fix that stores the editors content on each successful build in javascripts localStorage if availiable.
If the site is reloaded, it tries to load the previous code instead of the 'dummy' main.
Hope you accept it, to prevent such behaviour in the future.
I had the joy of loosing my whole code due to my browsers reaction on the
backspace
button (back in history) twice today.Thus i made a little fix that stores the editors content on each successful build in javascripts
localStorage
if availiable. If the site is reloaded, it tries to load the previous code instead of the 'dummy' main.Hope you accept it, to prevent such behaviour in the future.