From 7e8dcfe9d5643226f8b0b7467082a688bfd81368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20R=C3=B6hrl?= Date: Wed, 13 May 2020 13:18:15 +0200 Subject: [PATCH] banner to download android app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakob Röhrl --- src/App.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/App.vue b/src/App.vue index 47401cf1f..80f7e2601 100644 --- a/src/App.vue +++ b/src/App.vue @@ -24,6 +24,9 @@
+
+ {{ t('deck', 'There is an Android App available, please consider downloading it') }} +
@@ -76,6 +79,13 @@ export default { sidebarShown() { return this.sidebarRouterView || this.sidebarShownState }, + isAndroid() { + const userAgent = navigator.userAgent || navigator.vendor || window.opera + if (/android/i.test(userAgent)) { + return true + } + return false + }, }, provide: function() { return {