Hacker News new | ask | show | jobs
by nathantotten 3380 days ago
You don't know when this code was written or what the original purpose was. User agent detection used to be a best practice. Onedrive for business is a mountain of legacy software going from sharepoint to groove to who knows what. This bug could be buried in some library that was written 5+ years ago. Maliciously going out of your way to not support Linux sounds like a good way to have your code review rejected.
1 comments

To this day, user agent detection is the only (practical) way to avoid sending large polyfills to the 95% of clients that don't need them.