chore: remove deprecated ipcRenderer.sendTo()
(#39087)
chore: remove deprecated ipcRenderer.sendTo()
This commit is contained in:
parent
b5997a012d
commit
5078cae861
19 changed files with 20 additions and 207 deletions
|
@ -1,5 +1,4 @@
|
|||
import { EventEmitter } from 'events';
|
||||
import * as deprecate from '@electron/internal/common/deprecate';
|
||||
|
||||
const { ipc } = process._linkedBinding('electron_renderer_ipc');
|
||||
|
||||
|
@ -18,12 +17,6 @@ ipcRenderer.sendToHost = function (channel, ...args) {
|
|||
return ipc.sendToHost(channel, args);
|
||||
};
|
||||
|
||||
const sendToDeprecated = deprecate.warnOnce('ipcRenderer.sendTo');
|
||||
ipcRenderer.sendTo = function (webContentsId, channel, ...args) {
|
||||
sendToDeprecated();
|
||||
return ipc.sendTo(webContentsId, channel, args);
|
||||
};
|
||||
|
||||
ipcRenderer.invoke = async function (channel, ...args) {
|
||||
const { error, result } = await ipc.invoke(internal, channel, args);
|
||||
if (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue