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 DOMParser(), decode compatible with Web Workers #59

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

Arecsu
Copy link
Contributor

@Arecsu Arecsu commented Nov 29, 2024

Features like Offscreen Canvas use Web Workers. If we want to process a gainmap embedded in a JPEG, we won't have access to DOMParser() and thus need a compatible alternative. This is a simple Regex approach to get around it.

All test pass correctly :)

@daniele-pelagatti
Copy link
Contributor

Hi! Thanks for your PR! Looks good to me but there's an eslint check failed, can you have a look (npm run check:eslint-src)?

features like Offscreen Canvas use Web Workers. If we want to process a gainmap embedded in a JPEG, we won't have access to DOMParser() and thus need a compatible alternative. This is a simple Regex approach to get around it.
@Arecsu
Copy link
Contributor Author

Arecsu commented Nov 29, 2024

Alright, there were trailing spaces in two lines 🥴 now it should be good

@daniele-pelagatti daniele-pelagatti merged commit 93bf1c2 into MONOGRID:main Dec 5, 2024
11 checks passed
@daniele-pelagatti
Copy link
Contributor

aww, shit, the commit message format didn't trigger an automatic release, I'm going to trigger one "artificially", thanks for this in the meanwhile!

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