Skip to content

Commit

Permalink
Added default value for getting the persistent windowOptions from ele…
Browse files Browse the repository at this point in the history
…ctronStore

Signed-off-by: Luca Jaeger <[email protected]>
  • Loading branch information
owlJaeger authored and kittaakos committed May 25, 2020
1 parent ef78f58 commit 686d987
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ app.on('ready', () => {
width, height, x, y
});
const persistedWindowOptionsAdditions = electronStore.get('windowOptions');
const persistedWindowOptionsAdditions = electronStore.get('windowOptions', {});
const windowOptionsAdditions = {
...defaultWindowOptionsAdditions,
Expand Down Expand Up @@ -305,7 +305,7 @@ app.on('ready', () => {
electronStore.set('windowOptions', options);
});
ipcMain.on('get-persisted-window-options-additions', event => {
event.returnValue = electronStore.get('windowOptions');
event.returnValue = electronStore.get('windowOptions', {});
});
// Check whether we are in bundled application or development mode.
Expand Down

0 comments on commit 686d987

Please sign in to comment.