mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
35f081eaf4
commit
62eb0fa592
2 files changed
+6
-4
No files matched your search
@@ -16,7 +16,10 @@ export interface IpcMessageHandler {
|
||||
}
|
||||
|
||||
export function sendMessage(channel: IpcChannel, ...args: any[]) {
|
||||
webContents.getFocusedWebContents().send(channel, ...args);
|
||||
const webContent = webContents.getFocusedWebContents();
|
||||
if (webContent) {
|
||||
webContent.send(channel, ...args);
|
||||
}
|
||||
}
|
||||
|
||||
export async function invokeMessage(channel: IpcChannel, ...args: any[]) {
|
||||
|
||||
Reference in new issue
Block a user