fixed lint

This commit is contained in:
Gwilherm Folliot
2020-06-04 13:34:33 +02:00
parent 9190893ccf
commit 668986fc08

View File

@@ -88,8 +88,8 @@ export class Window {
if (process.platform === 'linux') { if (process.platform === 'linux') {
glasstron.update(this.window, { glasstron.update(this.window, {
linux: {requestBlur: true} linux: { requestBlur: true },
}); })
} }
this.window.once('ready-to-show', () => { this.window.once('ready-to-show', () => {
if (process.platform === 'darwin') { if (process.platform === 'darwin') {
@@ -150,8 +150,8 @@ export class Window {
} else { } else {
DwmEnableBlurBehindWindow(this.window, enabled) DwmEnableBlurBehindWindow(this.window, enabled)
} }
}else if(process.platform ==="linux"){ }else if(process.platform ==='linux'){
this.window.setBackgroundColor(enabled ? "#00000000" : "#131d27") this.window.setBackgroundColor(enabled ? '#00000000' : '#131d27')
} else { } else {
this.window.setVibrancy(enabled ? 'dark' : null as any) // electron issue 20269 this.window.setVibrancy(enabled ? 'dark' : null as any) // electron issue 20269
} }