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:
parent
12a38ace90
commit
695b02caaa
4 changed files with 62 additions and 33 deletions
|
@ -132,9 +132,6 @@ export default {
|
|||
"quit": {
|
||||
description: "Quit",
|
||||
execute: (app, args) => {
|
||||
if (window.localStorage) {
|
||||
localStorage.removeItem("autoconnect");
|
||||
}
|
||||
app.close({ name: SERVER_BUFFER });
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue