chore: fix ipcRenderer.sendTo deprecation warning (#39342)
This commit is contained in:
parent
24c9cbcc0a
commit
dcf1c65426
1 changed files with 2 additions and 1 deletions
|
@ -18,8 +18,9 @@ ipcRenderer.sendToHost = function (channel, ...args) {
|
||||||
return ipc.sendToHost(channel, args);
|
return ipc.sendToHost(channel, args);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const sendToDeprecated = deprecate.warnOnce('ipcRenderer.sendTo');
|
||||||
ipcRenderer.sendTo = function (webContentsId, channel, ...args) {
|
ipcRenderer.sendTo = function (webContentsId, channel, ...args) {
|
||||||
deprecate.warnOnce('ipcRenderer.sendTo');
|
sendToDeprecated();
|
||||||
return ipc.sendTo(webContentsId, channel, args);
|
return ipc.sendTo(webContentsId, channel, args);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue