jonorthwash / ud-annotatrix

GNU General Public License v3.0
63 stars 49 forks source link

LocalStorage is never cleared #491

Open Zensho opened 2 years ago

Zensho commented 2 years ago

Currently when running in static file mode, the program saves a lot of information in LocalStorage, but never makes any attempt to clear it. This results in a bloated LocalStorage when using the same url and affects opening/executing speed of the program.

I think this might be because the undo-manager is creating a lot of information, and also because the getTreebankId() method which is supposed to access and clean up LocalStorage entries is not working as intended, leading to the program not keeping the corpus on page refresh (#339) and also not clearing the LocalStorage at all.