back
Browser detection
luge includes Bowser to detect browser name and version. The Bowser instance is globally available on window.browser to do your own checks.
CSS classes
The following CSS classes are added to the html element depending on the user’s browser:
is-mobilewhen the user uses a mobile ;is-tabletwhen the user uses a tablet ;is-handheldwhen the user uses either a mobile or a tablet ;is-desktopwhen the user uses a computer ;is-safariwhen the user uses Safari (as it turns out that Safari is the new IE…), with an alternativeis-safari--13class that contains the version number.