-
Notifications
You must be signed in to change notification settings - Fork 15k
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
[request] Multiple preload
scripts
#2406
Comments
The |
Thanks for the reply. 😄 Is there a clean way of sending the paths (synchronously) to the |
You can save the paths in a global variable in the main process, and use the |
I am working on some low-level modules to help make CLI apps easier to write in Electron. Currently I am using the
preload
option to patch some things (likeprocess.argv
andwindow.onerror
) to provide a nicer user experience. However, the end-user may want to attach their ownpreload
scripts on top of this for their own specific needs.The easiest way I can think of is to make the
preload
option to BrowserWindow accept a(String|Array)
. This way my low-level module can run its preload script before any of the end-users scripts.What do you think? I might be able to help PR this feature.
The text was updated successfully, but these errors were encountered: