mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28: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', () => {
|
app.on('ready', () => {
|
||||||
function createWindow (fn) {
|
function createWindow (fn) {
|
||||||
const cfg = plugins.getDecoratedConfig();
|
const cfg = plugins.getDecoratedConfig();
|
||||||
|
const [width, height] = cfg.windowSize || [540, 380];
|
||||||
|
|
||||||
const browserDefaults = {
|
const browserDefaults = {
|
||||||
width: 540,
|
width,
|
||||||
height: 380,
|
height,
|
||||||
minHeight: 190,
|
minHeight: 190,
|
||||||
minWidth: 370,
|
minWidth: 370,
|
||||||
titleBarStyle: 'hidden-inset',
|
titleBarStyle: 'hidden-inset',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue