|
|
@ -61,7 +61,11 @@ function createWindow () { |
|
|
|
let data = { |
|
|
|
let data = { |
|
|
|
bounds: mainWindow.getBounds() |
|
|
|
bounds: mainWindow.getBounds() |
|
|
|
} |
|
|
|
} |
|
|
|
fs.writeFileSync(initPath, JSON.stringify(data)) |
|
|
|
try { |
|
|
|
|
|
|
|
fs.writeFileSync(initPath, JSON.stringify(data)); |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
console.log('Unable to save save init.json: ', e); |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// Emitted when the window is closed.
|
|
|
|
// Emitted when the window is closed.
|
|
|
|