Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use ipcRenderer.sendSync instead of remote.getGlobal #314

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hanchaa
Copy link

@hanchaa hanchaa commented Aug 10, 2021

As of electron v10, enableRemoteMoudle is set to false by default, and I had to enable it for this library.
And from v12, remote module was deprecated for security reason and it started to show warning message on devTools console.
I found that getInitialStateRenderer is using remote.getGlobal so I substitute ipcRenderer.sendSync to it.

@CLAassistant
Copy link

CLAassistant commented Aug 10, 2021

CLA assistant check
All committers have signed the CLA.

@hanchaa hanchaa changed the title feat: substitute ipcRenderer.sendSync to remote.getGlobal use ipcRenderer.sendSync instead of remote.getGlobal Aug 10, 2021
@H-s-O
Copy link

H-s-O commented Mar 2, 2022

@victorhqc Can this be merged and published soon? I know there's version 2, but it's still technically in alpha stage and Electron is already at version 17, 3 versions after the remote module was removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants