mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-09-12 06:39:38 +02:00
now using electron-store to save settings between launches
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
const settings = {
|
||||
notifications: true,
|
||||
api: true,
|
||||
apiSettings: {
|
||||
port: 47836,
|
||||
const Store = require("electron-store");
|
||||
const settings = require("./../constants/settings");
|
||||
|
||||
const store = new Store({
|
||||
defaults: {
|
||||
notifications: true,
|
||||
api: true,
|
||||
apiSettings: {
|
||||
port: 47836,
|
||||
},
|
||||
windowBounds: { width: 800, height: 600 },
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
const settingsModule = {
|
||||
store,
|
||||
settings,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user