chore: fix ipcRenderer.sendTo deprecation warning (#39342)

This commit is contained in:
David Sanders 2023-08-08 04:49:56 -07:00 committed by GitHub
parent 24c9cbcc0a
commit dcf1c65426
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,8 +18,9 @@ ipcRenderer.sendToHost = function (channel, ...args) {
return ipc.sendToHost(channel, args);
};
const sendToDeprecated = deprecate.warnOnce('ipcRenderer.sendTo');
ipcRenderer.sendTo = function (webContentsId, channel, ...args) {
deprecate.warnOnce('ipcRenderer.sendTo');
sendToDeprecated();
return ipc.sendTo(webContentsId, channel, args);
};