mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
support default width/height of browser window (#257)
This commit is contained in:
parent
1af99f1338
commit
68ea77c608
1 changed files with 3 additions and 2 deletions
5
index.js
5
index.js
|
|
@ -48,10 +48,11 @@ app.on('window-all-closed', () => {
|
|||
app.on('ready', () => {
|
||||
function createWindow (fn) {
|
||||
const cfg = plugins.getDecoratedConfig();
|
||||
const [width, height] = cfg.windowSize || [540, 380];
|
||||
|
||||
const browserDefaults = {
|
||||
width: 540,
|
||||
height: 380,
|
||||
width,
|
||||
height,
|
||||
minHeight: 190,
|
||||
minWidth: 370,
|
||||
titleBarStyle: 'hidden-inset',
|
||||
|
|
|
|||
Loading…
Reference in a new issue