Add electron includes #2600
arthuro555
started this conversation in
Enhancement ideas (and their technical discussions)
Replies: 1 comment 2 replies
-
Bump, I still think that this would be very useful. Additionally, I think it would be nice to add more "include types", maybe with an optional parameter on
This would allow to
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We should probably add some sort of system to add includes to the electron main.js, as some possible extensions could only be made that way (for example, discord rich presence only works on the main process, not on the renderer process, or an extension to get command line arguments would require accessing the node global
process
, only accessible in main, etc). This could also allow the removal of the unsafe and slowrequire("electron").remote
in favor of ipc events in some extensions.How should we do this? Adding a special
addElectronInclude()
method to a gdjsPlatformExtension
subclass would be maybe a way.Beta Was this translation helpful? Give feedback.
All reactions