I just read on MDN about window.navigator.userAgent:
Deprecated This feature has been removed from the Web standards. Though some browsers may st
Use feature detection. If you need to use feature X, test to see if X is available.