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

Fatal error on iOS Chrome #1491

Closed
saltire opened this issue Jun 30, 2021 · 4 comments
Closed

Fatal error on iOS Chrome #1491

saltire opened this issue Jun 30, 2021 · 4 comments

Comments

@saltire
Copy link

saltire commented Jun 30, 2021

Hi,

My app uses howler@2.2.2 and crashes on Chrome for iOS, throwing this error:
null is not an object (evaluating 'ua.match(/Version\/(.?) /)[1]')

which corresponds to this line:

var isOldSafari = (checkSafari && parseInt(ua.match(/Version\/(.*?) /)[1], 10) < 15);

The user agent string is: Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/91.0.4472.80 Mobile/15E148 Safari/604.1

@rhummelmose
Copy link

Same issue here

@goldfire
Copy link
Owner

And this is why I always try to avoid touching the UA. I'll get a fix shortly and push up 2.2.3. Thanks for the heads up.

@saltire
Copy link
Author

saltire commented Jun 30, 2021

Amazing, thanks for the fast turnaround!

@rhummelmose
Copy link

Awesome, fix already live on our site. Thanks! :)

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

No branches or pull requests

3 participants