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

replaced exif-js with exifr #46

Merged
merged 1 commit into from
Mar 12, 2020
Merged

replaced exif-js with exifr #46

merged 1 commit into from
Mar 12, 2020

Conversation

MikeKovarik
Copy link
Contributor

in response to #41

@bergben bergben merged commit 2514eba into bergben:master Mar 12, 2020
@fgisslen
Copy link

@MikeKovarik hi I get this error ReferenceError: TextDecoder is not defined after the update to exifr.

@MikeKovarik
Copy link
Contributor Author

Hi. what browser are you using?

@MikeKovarik
Copy link
Contributor Author

Ok. so i noticed this module supports IE10+. I mistakenly assumed it supports only evergreens, but i was looking at ng2-pica where there's no mention of IE in the readme.

The fix is fortunately faily simple. All that's needed is simply replace plain import

import * as exifr from 'exifr';

with legacy one (it includes shim for TextDecoder

import * as exifr from 'exifr/dist/core.legacy.umd.js';

I'll make PRs today

@bergben
Copy link
Owner

bergben commented Mar 21, 2020

released 2.2.4 with new PRs

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.

3 participants