Skip to content

feat(electron): generate a single electron preload script #86

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

schmidtk
Copy link
Contributor

@schmidtk schmidtk commented Jul 6, 2021

Newer versions of Electron don't seem to handle loading preload scripts from session.setPreloads properly. The first time the app is loaded, these preload scripts are not loaded.

This changes the resolver's Electron plugin to generate a preload script that loads the other preloads contributed by projects in the workspace. That allows the app to use webPreferences.preload, which is the preferred way to load a preload script.

This supplements ngageoint/opensphere-electron/pull/42.

@schmidtk schmidtk self-assigned this Jul 6, 2021
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

Successfully merging this pull request may close these issues.

1 participant