Store browserwindows bounds of Electron APP
npm install electron-window-boundsHelp you cache all bounds of BrowserWindows.
In your main.js:
``js
app.whenReady().then(() => {
// init it when app is ready
require('electron-window-bounds').init();
myWindow = createWindow();
});
`
That all!
The cache file locate in userData path with name {appName}-window-bounds.json
You can customize it by passing path to init(path)
If you don't need to restore x and y, use init("", true)`