mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
[PM-1179] Ensure win is not destroyed in updateWindowState (#10737)
This commit is contained in:
parent
81e82a2535
commit
281b4db424
@ -323,7 +323,7 @@ export class WindowMain {
|
||||
}
|
||||
|
||||
private async updateWindowState(configKey: string, win: BrowserWindow) {
|
||||
if (win == null) {
|
||||
if (win == null || win.isDestroyed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user