os x: hide title bar
This commit is contained in:
3
index.js
3
index.js
@@ -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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user