etienne-martin/device-detector-js

[BUG] app is crashing on mac os safari

bartoszboruta opened this issue · 7 comments

Hi, it seems like you didn't test it correctly!!!
My userAgent:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15

image

You're right, it crashes in Safari.

Here's a repro:
https://codesandbox.io/s/lx3rzx16x9

I have the same problem and I depend on Safari. Is there a quick solution for this or when could you fix?

Hello, @etienne-martin @mehmetnyarar @andrejunges
My temporal solution was add a try catch in userAgentParser, and this work in Safari and Firefox in MacOS.

I don't know what do you think about that.

This can be solved by update node to the lastest version

This is fixed in v2