window start smaller (500x300)
This commit is contained in:
6
index.js
6
index.js
@@ -55,12 +55,12 @@ function createMainWindow () {
|
|||||||
var win = new electron.BrowserWindow({
|
var win = new electron.BrowserWindow({
|
||||||
backgroundColor: '#282828',
|
backgroundColor: '#282828',
|
||||||
darkTheme: true,
|
darkTheme: true,
|
||||||
height: 400,
|
minWidth: 360,
|
||||||
show: false,
|
show: false,
|
||||||
title: 'WebTorrent',
|
title: 'WebTorrent',
|
||||||
titleBarStyle: 'hidden-inset',
|
titleBarStyle: 'hidden-inset',
|
||||||
width: 600,
|
width: 500,
|
||||||
minWidth: 360
|
height: 300
|
||||||
})
|
})
|
||||||
win.loadURL('file://' + path.join(__dirname, 'main', 'index.html'))
|
win.loadURL('file://' + path.join(__dirname, 'main', 'index.html'))
|
||||||
win.webContents.on('did-finish-load', function () {
|
win.webContents.on('did-finish-load', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user