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

Loading preload scripts #773

Open
leonard-vlaicu opened this issue Sep 1, 2023 · 1 comment
Open

Loading preload scripts #773

leonard-vlaicu opened this issue Sep 1, 2023 · 1 comment

Comments

@leonard-vlaicu
Copy link

leonard-vlaicu commented Sep 1, 2023

Hello.

I'd like to use this package together with your boilerplate, but it requires me to run some preload scripts.

I tried setting up a path to a preload file in webPreferences, but I get an error "Unable to load preload script".

@egimataOptimad
Copy link

You cannot set preloading scripts without modifying a few files and also contextIsolation. This package is by default without preloading and you can directly access node in the renderer process.
But if you need to use preload script, you can follow this issue here. This guy already configured some stuff for us and it works great.
Cheers

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

No branches or pull requests

2 participants