How to detect Firefox in JavaScript?
I want to detect all versions of Firefox.
How to detect Firefox in JavaScript?
I want to detect all versions of Firefox.
An alternate answer:
parseFloat(navigator.userAgent.split('Firefox/').pop(), 10) >= 92;
should be faster than using regexps...
Detect the user agent, then check for firefox in the response:
navigator.userAgent.toLowerCase().includes('firefox') // true || false