electron-store base for volume storing, fixes to window max/min handling
This commit is contained in:
parent
f193299996
commit
3fcf6f9faf
3 changed files with 55 additions and 20 deletions
7
index.js
7
index.js
|
@ -4,6 +4,13 @@ const {app} = require('electron');
|
|||
// Creating the Application Window and Calling all the Functions
|
||||
function CreateWindow() {
|
||||
if (app.isQuiting) { app.quit(); return; }
|
||||
|
||||
// store
|
||||
const Store = require("electron-store");
|
||||
app.cfg = new Store({
|
||||
defaults: {volume: 1},
|
||||
});
|
||||
|
||||
/** CIDER **/
|
||||
const ciderwin = require("./resources/functions/cider-base")
|
||||
app.win = ciderwin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue