-
Notifications
You must be signed in to change notification settings - Fork 50
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
@electron/remote for multiple windows #81
Comments
like this?
|
This works well for the main process. But not for child windows. It looks like I need to use |
Thanks to @otsybulsky for this useful hint.
|
Thanks to @tonton-pixel , but your solution not works for me, the child window created from the main window still complains: The following is my code, anyone has any idea? Thanks.
|
My code contains this flow: |
Thanks for your reply. I tried your flow, but still the same error. |
Finally, I figured out a solution, I CANNOT explain why, BUT it works for me.
|
I create windows from renderer and I use
|
It should be called immediately after window created. |
your solution not work for me too, It will show error: "@electron/remote" cannot be required in the browser process. Instead require("@electron/remote/main") |
Hi! I use electron 14 and @electron/remote 2.0.1 for main window successfully. Then I try open child window.
I get an error
Please help me understand how to open multiple child window with call require("@electron/remote/main").enable(webContents).
Thank you for help.
The text was updated successfully, but these errors were encountered: