explicitly check for platform being darwin before applying titleBarStyle

This commit is contained in:
Philipp Brumm
2016-05-27 08:51:06 +02:00
parent 4a61bef6fe
commit a357228876

View File

@@ -23,7 +23,6 @@ class AtomWindow
options =
show: false
title: 'Atom'
titleBarStyle: 'hidden'
# Add an opaque backgroundColor (instead of keeping the default
# transparent one) to prevent subpixel anti-aliasing from being disabled.
# We believe this is a regression introduced with Electron 0.37.3, and
@@ -41,6 +40,9 @@ class AtomWindow
if process.platform is 'linux'
options.icon = @constructor.iconPath
if process.platform is 'darwin'
options.titleBarStyle = 'hidden'
@browserWindow = new BrowserWindow options
global.atomApplication.addWindow(this)