Comment by promiseofbeans
Comment by promiseofbeans 12 hours ago
Please never do version checks. Test for the existence of the exact features/methods you need instead - this is trivial in JS: if(Temporal)
Checking against version numbers helps cement existing browser monopolies, makes it difficult for new browsers to view websites (even if the browser correctly implements every feature), and encourages everyone to spoof version numbers / browser names which leads to them becoming a less and less useful signal. See any browser’s User-Agent string for an example of this