From 56c44133d5cf31a08d59280101b87d0f1ac12266 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 18 Dec 2020 18:11:19 -0700 Subject: [PATCH] Add error for mobile devices. --- web/src/App.vue | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/web/src/App.vue b/web/src/App.vue index f170168..e2df581 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -1,9 +1,22 @@ @@ -25,6 +38,9 @@ export default { gameState() { return this.$store.state.view; }, + isMobile () { + return navigator == null || navigator.userAgent.match(/iPhone|iPod|Android/) != null; + }, }, methods: {}, } @@ -44,4 +60,10 @@ html, body { padding: 0; margin: 0; } + +.error { + border: solid 2px red; + margin: 50% auto; + width: 90%; +} \ No newline at end of file