Merge pull request #487 from furstenheim/master
Avoid TypeError out of OS X
This commit is contained in:
commit
17d5490448
1 changed files with 3 additions and 1 deletions
|
|
@ -100,7 +100,9 @@ function createMainWindow () {
|
|||
height: HEADER_HEIGHT + (TORRENT_HEIGHT * 5) // header height + 4 torrents
|
||||
})
|
||||
win.loadURL(config.WINDOW_MAIN)
|
||||
win.setSheetOffset(HEADER_HEIGHT)
|
||||
if (process.platform === 'darwin') {
|
||||
win.setSheetOffset(HEADER_HEIGHT)
|
||||
}
|
||||
|
||||
win.webContents.on('dom-ready', function () {
|
||||
menu.onToggleFullScreen()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue