1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-25 16:59:17 +01:00

[PM-1179] Ensure win is not destroyed in updateWindowState (#10737)

This commit is contained in:
Daniel García 2024-09-27 12:30:04 +02:00 committed by GitHub
parent 81e82a2535
commit 281b4db424
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -323,7 +323,7 @@ export class WindowMain {
}
private async updateWindowState(configKey: string, win: BrowserWindow) {
if (win == null) {
if (win == null || win.isDestroyed()) {
return;
}