Merge pull request #1590 from webtorrent/update-electron

Update to electron 4; it may not be perfect, but we have to move on
This commit is contained in:
Borewit
2019-07-30 21:44:22 +02:00
committed by GitHub
6 changed files with 3227 additions and 2335 deletions

View File

@@ -40,7 +40,7 @@ function init (state, options) {
minWidth: config.WINDOW_MIN_WIDTH,
show: false,
title: config.APP_WINDOW_TITLE,
titleBarStyle: 'hidden-inset', // Hide title bar (Mac)
titleBarStyle: 'hiddenInset', // Hide title bar (Mac)
useContentSize: true, // Specify web page size without OS chrome
width: initialBounds.width,
x: initialBounds.x,
@@ -209,7 +209,7 @@ function toggleDevTools () {
if (main.win.webContents.isDevToolsOpened()) {
main.win.webContents.closeDevTools()
} else {
main.win.webContents.openDevTools({ detach: true })
main.win.webContents.openDevTools({ mode: 'detach' })
}
}