You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
While reading the 2.0.0-beta documentation here:
https://docs.uaparser.js.org/v2/api/submodules/extensions/overview.html
I learned that the required way of combining multiple Extensions is like this:
it would be so much intuitive and simple to use if the library supports simply this:
as an example of how ugly it can get...
I wanted to implement the parsing of all possible known user agents and my code ended up like this:
when it could have been as intuitive and simple as this:
Beta Was this translation helpful? Give feedback.
All reactions