now using electron-store to save settings between launches

This commit is contained in:
2019-11-03 11:18:01 +01:00
parent 3d334cd19e
commit 6ef4a0854d
8 changed files with 195 additions and 31 deletions

25
src/constants/settings.js Normal file
View File

@@ -0,0 +1,25 @@
/**
* Object to type my settings file:
*
* notifications: true,
* api: true,
* apiSettings: {
* port: 47836,
* },
* windowBounds: { width: 800, height: 600 },
*/
const settings = {
notifications: "notifications",
api: "api",
apiSettings: {
root: "apiSettings",
port: "apiSettings.port",
},
windowBounds: {
root: "windowBounds",
width: "windowBounds.width",
height: "windowBounds.height",
},
};
module.exports = settings;