os x: hide title bar

This commit is contained in:
Feross Aboukhadijeh
2016-02-16 21:21:28 -08:00
parent 3011ee97d9
commit 492476c24f

View File

@@ -32,7 +32,8 @@ app.on('window-all-closed', function () {
function createMainWindow () { function createMainWindow () {
const win = new electron.BrowserWindow({ const win = new electron.BrowserWindow({
width: 600, width: 600,
height: 400 height: 400,
titleBarStyle: 'hidden'
}) })
win.loadURL('file://' + path.join(__dirname, 'index.html')) win.loadURL('file://' + path.join(__dirname, 'index.html'))
win.once('closed', function () { win.once('closed', function () {