mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-09-28 04:19:01 +00:00
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:
parent
6ed2bd0672
commit
1f07f148c6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user