-
### Preflight Checklist
* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code …
jjeff updated
3 years ago
-
## Description of feature
Currently, nody-greeter uses `ipcRenderer.sendSync` in the `BrowserWindow` process to request (and send) certain data from the main process. While this does simplify develop…
-
Easiest explained with code:
In the main process:
``` js
ipcMain.on('ping', e => {
console.log('ping received');
e.sender.send('pong');
});
```
In Spectron:
``` js
const {ipcRenderer} = app.el…
davej updated
7 years ago
-
`let data = {
url: "/test/web",
resizable: true,
webview: true,
sendData: item
};
ipcRenderer.invoke("open-win", data)`
启动一个新页面
然后新页面
import { ipcR…
-
## Summary
I'm trying to fix an issue with tests that are returning the following error:
```
Jest cannot read properties of undefined (reading 'ipcRenderer')
export const mainBridge = window…
-
Hi,
I am implementing the security tip from Electron.
https://www.electronjs.org/docs/tutorial/security#2-do-not-enable-nodejs-integration-for-remote-content
But this has no effect, I don't kno…
-
#### Preload.js
```js
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electronAPI', {
invoke: (channel, data) => ipcRenderer.invoke(channel, data),
se…
-
X64 version of the app on Windows stopped opening. Hangs at logo screen. Redownloaded and installed, still the same
_______________
**Device information:**
App version: 3.0.12
Platform: android
Devic…
-
Hi, I configured the library in jest.config.js and mock's file as needed.
I have the following code in my main process:
```
import { ipcMain } from 'electron';
...
export function someListener() …
-
I'm trying to find a way of effectively testing for IPC events being sent/received on either the main or renderer processes.
Looking at the spectron tests, I came across this: https://github.com/elec…