Skip to content

Ensure require.main is not undefined#117

Open
pgherveou wants to merge 1 commit intoilearnio:devfrom
pgherveou:patch-1
Open

Ensure require.main is not undefined#117
pgherveou wants to merge 1 commit intoilearnio:devfrom
pgherveou:patch-1

Conversation

@pgherveou
Copy link

In electron environment require.main can be undefined.
This make sure this function does not throw an Error

In electron environment require.main can be undefined.
This make sure this function does not throw an Error
@pgherveou pgherveou changed the title Ensure require.main is set Ensure require.main is not undefined Mar 31, 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