window start smaller (500x300)

This commit is contained in:
Feross Aboukhadijeh
2016-03-02 18:21:44 -08:00
parent 6d95cd7285
commit 719cc3acaf

View File

@@ -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 () {