npm install @antinomy-studio/sniffer --save
import sniffer from '@antinomy-studio/sniffer'
console.log(sniffer.isDesktop)
sniffer.addClasses(document.documentElement)
Add dashed-case sniffing classes to the given element, i.e. is-ios
, is-firefox
.
el
- the element to add classes to.
Return an object containing all the sniffing properties.
MIT.