fix caching logic
This commit is contained in:
parent
3b03bd0e8d
commit
d682982a54
|
@ -4,7 +4,7 @@
|
|||
let cached
|
||||
|
||||
export function isMobile () {
|
||||
if (!cached) {
|
||||
if (typeof cached === 'undefined') {
|
||||
cached = !!(process.browser && navigator.userAgent.match(/(iPhone|iPod|iPad|Android)/))
|
||||
}
|
||||
return cached
|
||||
|
|
Loading…
Reference in a new issue