Introduce store helper

Responsible for serializing/deserializing data to be saved in
localStorage. Add a prefix to all localStorage entries to avoid
conflicts with other webapps. Stop guarding against localStorage
not existing, browsers can just implement a dumb interface to
disable it.
This commit is contained in:
Simon Ser 2021-05-26 18:43:11 +02:00
parent 12a38ace90
commit 695b02caaa
4 changed files with 62 additions and 33 deletions

View file

@ -132,9 +132,6 @@ export default {
"quit": {
description: "Quit",
execute: (app, args) => {
if (window.localStorage) {
localStorage.removeItem("autoconnect");
}
app.close({ name: SERVER_BUFFER });
},
},