Merge pull request #13892 from desktop/one-day-i-will-learn-how-to-code

Don't send IPC message to destroyed web contents
This commit is contained in:
Markus Olsson 2022-02-16 11:15:10 +01:00 committed by GitHub
commit 6c63b418ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,7 @@ export function send<T extends keyof RequestChannels>(
throw new Error(msg)
}
log.error(msg)
} else {
webContents.send(channel, ...args)
}
webContents.send(channel, ...args)
}