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

Remove the check whether proj4 is an object #3

Merged
merged 1 commit into from
Nov 6, 2022

Conversation

luka-mikec
Copy link
Contributor

This PR removes a check which seems to be incompatible with Rollup. I wrote more details here: GeoTIFF/georaster-layer-for-leaflet#109

I believe the removal of this check does not have negative consequences. If one of the remaining conditions, typeof proj4.defs !== "function", is satisfied, then unless the body of the if is executed, the line below (proj4.defs(defs);) will fail. So doing the additional check (which I propose to remove) does not affect whether the code will throw an error.

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.

2 participants