UNPKG
lixin-web
Version:
latest (1.0.5)
1.0.5
vue and bootstrap
lixin-web
/
webapp
/
js
/
util
/
UA.js
6 lines
(5 loc)
•
177 B
JavaScript
View Raw
1
2
3
4
5
6
import
UAParser
from
'ua-parser-js'
export
const
UA
=
UAParser
()
const
UAName
=
UA
.
browser
.
name
export
const
isIE =
UAName
===
'IE'
export
const
isEdge =
UAName
===
'Edge'