mirror of
https://github.com/desktop/desktop
synced 2024-09-17 23:21:55 +00:00
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:
commit
6c63b418ea
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue