espruino / EspruinoWebIDE

The Espruino Web IDE - A Chrome Web App for programming Espruino
Apache License 2.0
367 stars 158 forks source link

Terminal logger - option to save to localStorage #252

Closed AkosLukacs closed 3 years ago

AkosLukacs commented 3 years ago

So you don't lose data if you forget it, or accidentally close the tab

AkosLukacs commented 3 years ago

There is a separate setting option to enable it, so it's not on by default.

There is one caveat: if this grows larger than the quota, well, things can start to fail :/ Maybe remove data from localStorage when the user unticks the save to localStorage option?

One possible problem, if data comes in really fast. But not sure how fast could be too fast...

gfwilliams commented 3 years ago

Nice - thanks! Seems like a really good idea.