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:
@@ -132,9 +132,6 @@ export default {
|
||||
"quit": {
|
||||
description: "Quit",
|
||||
execute: (app, args) => {
|
||||
if (window.localStorage) {
|
||||
localStorage.removeItem("autoconnect");
|
||||
}
|
||||
app.close({ name: SERVER_BUFFER });
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user