fixed #388 - option.transparent not required anymore

This commit is contained in:
Eugene Pankov 2018-08-18 19:51:52 +02:00
parent 81579fa9cc
commit a7bee5dd01

View File

@ -233,8 +233,6 @@ start = () => {
minWidth: 400, minWidth: 400,
minHeight: 300, minHeight: 300,
webPreferences: {webSecurity: false}, webPreferences: {webSecurity: false},
//- background to avoid the flash of unstyled window
backgroundColor: '#131d27',
frame: false, frame: false,
show: false, show: false,
} }
@ -248,9 +246,8 @@ start = () => {
} }
} }
if (['darwin', 'win32'].includes(process.platform)) { if (process.platform == 'linux') {
options.transparent = true options.backgroundColor = '#131d27'
delete options.backgroundColor
} }
app.commandLine.appendSwitch('disable-http-cache') app.commandLine.appendSwitch('disable-http-cache')