Make navigator undefined match more explicit.
This commit is contained in:
parent
e04a0bca08
commit
f79b7abb3e
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ export default {
|
||||||
return navigator.userAgent;
|
return navigator.userAgent;
|
||||||
},
|
},
|
||||||
isMobile () {
|
isMobile () {
|
||||||
return this.userAgent.match(/Navigator|iPhone|iPod|Android/) != null;
|
return this.userAgent.match(/(Navigator Undefined)|iPhone|iPod|Android/) != null;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue