electron-window-bounds
v1.0.10
Published
Store browserwindows bounds of Electron APP
Downloads
82
Readme
electron-window-bounds
Help you cache all bounds of BrowserWindows.
Usage
In your main.js:
app.whenReady().then(() => {
// init it when app is ready
require('electron-window-bounds').init();
myWindow = createWindow();
});
That all!
Note
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)