lukehaas / RunJS

RunJS is a JavaScript playground for macOS, Windows and Linux. Write code with instant feedback and access to Node.js and browser APIs.
https://runjs.app
2k stars 43 forks source link

Code lost on update #615

Closed cfjedimaster closed 3 months ago

cfjedimaster commented 3 months ago

I had a tab with some edited code, got the notification that a new version of RunJS was available and told it to update. When RunJS came back, the modified code was gone. (I didn't lose a lot, just like 3 lines or so.)

lukehaas commented 3 months ago

Older versions of RunJS would auto-save when the code is run. If you wrote code and didn't run it, this would explain why it wasn't saved.

cfjedimaster commented 3 months ago

Ah, I definitely didn't run it.

lukehaas commented 3 months ago

Cool. Now RunJS auto-saves on change instead of on run so this shouldn't be a problem now.

Thanks for raising this anyway. Catching bugs can be tricky so it's really helpful that you're looking out for stuff like this.