mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
add default values to cfg.get call
This commit is contained in:
parent
820c094923
commit
6eae01c7ae
1 changed files with 2 additions and 2 deletions
|
|
@ -12,8 +12,8 @@ const cfg = new Config({defaults});
|
|||
export default {
|
||||
defaults,
|
||||
get() {
|
||||
const position = cfg.get('windowPosition');
|
||||
const size = cfg.get('windowSize');
|
||||
const position = cfg.get('windowPosition', defaults.windowPosition);
|
||||
const size = cfg.get('windowSize', defaults.windowSize);
|
||||
return {position, size};
|
||||
},
|
||||
recordState(win: BrowserWindow) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue