Browser
Very simple browser detection module.
import { browser, mobile } from 'oblik/utils/browser'
let name = browser()
let isMobile = mobile()
console.log(name) // chrome
console.log(isMobile) // false
# Exports
#
browser(): string
Returns the browser vendor name:
firefox
edge
chrome
safari
ie
If the name could not be determined, null
is returned.
#
mobile(): boolean
Returns whether the browser is mobile.