0.0.4 • Published 6 years ago

h-electron-window-state v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

This repository is a fork of mawie81/electron-window-state It shares all the functionality the original repo has, but this version also can save window state to an already existing JSON file. To do that you need to pass object_path property to windowStateKeeper function

  let mainWindowState = windowStateKeeper({
    defaultWidth: 1000,
    defaultHeight: 800,
    object_path: 'settings.window.position',
    path: 'app-settings.json'
  });

So your app-settings.json file would look like this

  {
    ...
    ...
    settings: {
      window: {
        position: { Here will be the window state }
      }
    }
  }
0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago