-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add support for preload scripts? #752
Comments
No problems with preloaded scripts and node integration true if you are not going to implement your own browser and load URLs from the untrusted world. For the sandboxed application it is ok. Yes, you should understand the dependencies you use. |
Hi @TheJakey, It's a dilemma I've always had on this project. 😅 Btw I should add a warning about that in the README & links to Electron documentation to let people know. |
Well, I'm currently struggling with packaging the app (I decided to go with preload and context isolation) and damn it's a hustle to make it work (due to some dependencies calling require(), among other issues). >_< So I totally see that this approach is much easier to handle. It sounds like a great idea to add some explanation to README about this topic. |
Here's a quick fork I made today that adds support for preloads: https://github.com/faribauc/angular-electron See specific changes here: 5ae0b86 Please go ahead and comment over there with any suggestions you may have! @maximegris Let me know if this would be worth a PR for your repo. :) |
Hi @faribauc I think there are some changes to do in the I guess conditional imports in |
This is my way of adding preloaded scripts, and it works fine so far.
|
Hello, I don't quite understand, why is there no Preload script in here since it's recommended practice?
Also
nodeIntegration: true
is based on several high-upvoted posts on StackOverflow just a huge security risk e.g. https://stackoverflow.com/a/59888788/12139920Thanks for ur insights!
The text was updated successfully, but these errors were encountered: