From 81a35737fd62df054520f3f6ebe538a43406a251 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 27 May 2021 08:12:53 -0400 Subject: [PATCH] Fix spelling and grammar in Ipc docs (#2880) Signed-off-by: Sebastian Malton --- docs/extensions/guides/ipc.md | 2 +- src/extensions/ipc/ipc-renderer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/extensions/guides/ipc.md b/docs/extensions/guides/ipc.md index b6ec38eacd..e95cb25883 100644 --- a/docs/extensions/guides/ipc.md +++ b/docs/extensions/guides/ipc.md @@ -30,7 +30,7 @@ With this sort of communication the caller needs to wait for the result from the This is accomplished by `await`-ing the returned `Promise`. This is a unidirectional form of communication. -Only `renderer` can initiate this kind of request, and only `main` can and respond to this kind of request. +Only `renderer` can initiate this kind of request, and only `main` can receive and respond to this kind of request. ## Registering IPC Handlers and Listeners diff --git a/src/extensions/ipc/ipc-renderer.ts b/src/extensions/ipc/ipc-renderer.ts index 59a42f85a0..0facfb2085 100644 --- a/src/extensions/ipc/ipc-renderer.ts +++ b/src/extensions/ipc/ipc-renderer.ts @@ -37,7 +37,7 @@ export abstract class IpcRenderer extends IpcRegistrar { * a component then putting the returned value in a `disposeOnUnmount` call will suffice. * @param channel The channel to listen for broadcasts on * @param listener The function that will be called with the arguments of the broadcast - * @returns An optional disopser, Lens will cleanup even if this is not called + * @returns An optional disposer, Lens will cleanup even if this is not called */ listen(channel: string, listener: (event: Electron.IpcRendererEvent, ...args: any[]) => any): Disposer { const prefixedChannel = `extensions@${this[IpcPrefix]}:${channel}`;