Closed Francis2022 closed 3 years ago
Hi I solved this problem by inserting below script to index.html i am not sure is it good practice to load this but i can not give up browser-image-compression as its uploading images very fast and the image compression is excellent.
<script src="//unpkg.com/@ungap/global-this"></script>
Hi This is my very first post in Github and just signed up to post my issue with browser-image-compression.
My site built using react and browser-image-compression work fine on my laptop and desktop browsers. But sadly when i try it on my iphone safari browser it throws me below error. ReferenceError: Cant find variable: globalThis
I have changed console.log to alert so i can see whats going on in my iphone browser. I get errors during try catch. I am not sure what i am doing wrong. So sorry if i am disturbing. browser-image-compression is the best i found.