fix: ensure that internal messages are sent from the main process (#26429)
This commit is contained in:
parent
83d30c5c2a
commit
5ee9cc202b
6 changed files with 34 additions and 9 deletions
4
typings/internal-electron.d.ts
vendored
4
typings/internal-electron.d.ts
vendored
|
@ -232,7 +232,9 @@ declare namespace ElectronInternal {
|
|||
|
||||
interface IpcRendererInternal extends Electron.IpcRenderer {
|
||||
invoke<T>(channel: string, ...args: any[]): Promise<T>;
|
||||
sendToAll(webContentsId: number, channel: string, ...args: any[]): void
|
||||
sendToAll(webContentsId: number, channel: string, ...args: any[]): void;
|
||||
onMessageFromMain(channel: string, listener: (event: Electron.IpcRendererEvent, ...args: any[]) => void): this;
|
||||
onceMessageFromMain(channel: string, listener: (event: Electron.IpcRendererEvent, ...args: any[]) => void): this;
|
||||
}
|
||||
|
||||
// Internal IPC has _replyInternal and NO reply method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue