mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28: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 {
|
export default {
|
||||||
defaults,
|
defaults,
|
||||||
get() {
|
get() {
|
||||||
const position = cfg.get('windowPosition');
|
const position = cfg.get('windowPosition', defaults.windowPosition);
|
||||||
const size = cfg.get('windowSize');
|
const size = cfg.get('windowSize', defaults.windowSize);
|
||||||
return {position, size};
|
return {position, size};
|
||||||
},
|
},
|
||||||
recordState(win: BrowserWindow) {
|
recordState(win: BrowserWindow) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue