0
0
Fork 0

Make navigator undefined match more explicit.

This commit is contained in:
Oliver-Akins 2021-01-01 23:36:07 -07:00
parent e04a0bca08
commit f79b7abb3e

View file

@ -67,7 +67,7 @@ export default {
return navigator.userAgent;
},
isMobile () {
return this.userAgent.match(/Navigator|iPhone|iPod|Android/) != null;
return this.userAgent.match(/(Navigator Undefined)|iPhone|iPod|Android/) != null;
},
},
methods: {