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

Graceful fallback if the renderer process can't access the remote module #159

Merged
merged 1 commit into from
Feb 22, 2021

Conversation

jviotti
Copy link
Member

@jviotti jviotti commented Feb 18, 2021

Right now this module will crash when being ran on a renderer process
that cannot access the remote module for determining a default data
path. After this commit, the module will gracefully require users to
call .setDataPath() if remote.app cannot be accessed.

See: #155
Signed-off-by: Juan Cruz Viotti [email protected]

@jviotti jviotti force-pushed the optional-remote-module branch from 4255dfc to 7553164 Compare February 18, 2021 21:15
@jviotti jviotti mentioned this pull request Feb 18, 2021
@jviotti
Copy link
Member Author

jviotti commented Feb 18, 2021

This seems to make the module work when setting enableRemoteModule: false

Right now this module will crash when being ran on a renderer process
that cannot access the `remote` module for determining a default data
path. After this commit, the module will gracefully require users to
call `.setDataPath()` if `remote.app` cannot be accessed.

See: #155
Signed-off-by: Juan Cruz Viotti <[email protected]>
@jviotti jviotti force-pushed the optional-remote-module branch from 7553164 to 0d89a67 Compare February 18, 2021 21:39
@jviotti jviotti merged commit 4cdb226 into master Feb 22, 2021
@jviotti jviotti deleted the optional-remote-module branch February 22, 2021 14:52
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