The code gets saved whenever you upload - so if you clear it, then click 'upload', that should sort it out.
It's a bit frustrating - ideally it'd save on close, but I've had a lot of trouble getting that working. If anyone wanted to figure out how to fix it it'd really be appreciated! :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
The code gets saved whenever you upload - so if you clear it, then click 'upload', that should sort it out.
It's a bit frustrating - ideally it'd save on close, but I've had a lot of trouble getting that working. If anyone wanted to figure out how to fix it it'd really be appreciated! :)