fix crash on Windows 7

This commit is contained in:
Richard Yu 2022-03-27 04:19:22 +08:00
parent 69ddd2fc9f
commit aedad13f48
No known key found for this signature in database
GPG Key ID: 44FFAF069A806DED

View File

@ -182,7 +182,7 @@ export class Window {
console.error('Failed to set window blur', error) console.error('Failed to set window blur', error)
} }
} else { } else {
DwmEnableBlurBehindWindow(this.window, enabled) DwmEnableBlurBehindWindow(this.window.getNativeWindowHandle(), enabled)
} }
} else if (process.platform === 'linux') { } else if (process.platform === 'linux') {
this.window.setBackgroundColor(enabled ? '#00000000' : '#131d27') this.window.setBackgroundColor(enabled ? '#00000000' : '#131d27')