aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-03-28 15:50:53 -0400
committertaehoon <th.dev91@gmail.com>2019-05-03 11:40:06 -0400
commit0bb82478229b19adae998b9a32b05bcaa4ed0a4f (patch)
treeb9f35f450ff042d3ef7eab6384fe169a4b0b188c /src/App.js
parente97f8a4728bdc224b683242ca446c23a4e4ba5d1 (diff)
fix double scrollbar display bug in mobile
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/App.js b/src/App.js
index e72c73e3..87f00989 100644
--- a/src/App.js
+++ b/src/App.js
@@ -39,7 +39,14 @@ export default {
window.CSS.supports('-moz-mask-size', 'contain') ||
window.CSS.supports('-ms-mask-size', 'contain') ||
window.CSS.supports('-o-mask-size', 'contain')
- )
+ ),
+ isMobile: navigator.userAgent.match(/Android/i) ||
+ navigator.userAgent.match(/webOS/i) ||
+ navigator.userAgent.match(/iPhone/i) ||
+ navigator.userAgent.match(/iPad/i) ||
+ navigator.userAgent.match(/iPod/i) ||
+ navigator.userAgent.match(/BlackBerry/i) ||
+ navigator.userAgent.match(/Windows Phone/i)
}),
created () {
// Load the locale from the storage