Force fullscreen when options.fullScreen is true (#403)

Fixes #402, as electron-window-state does not appear to remember fullscreen in all cases.
This commit is contained in:
Brian Blakely 2017-08-06 20:01:34 -04:00 committed by Ronan Jouchet
parent 6ed2bd0672
commit 1f07f148c6
1 changed files with 0 additions and 6 deletions

View File

@ -88,12 +88,6 @@ function createMainWindow(inpOptions, onAppQuit, setDockBadge) {
mainWindowState.manage(mainWindow);
// after first run, no longer force full screen to be true
if (options.fullScreen) {
options.fullScreen = undefined;
fs.writeFileSync(path.join(__dirname, '..', 'nativefier.json'), JSON.stringify(options));
}
// after first run, no longer force maximize to be true
if (options.maximize) {
mainWindow.maximize();