From 8fb521c83c431542281f699708ddd864afb99f3e Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Fri, 13 May 2016 17:14:01 +0100 Subject: [PATCH] 302 android to play store --- src/vector/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vector/index.js b/src/vector/index.js index 9f687eb62..db353c250 100644 --- a/src/vector/index.js +++ b/src/vector/index.js @@ -188,6 +188,12 @@ function loadApp() { return; } } + else if (/Android/.test(navigator.userAgent)) { + if (confirm("Vector works much better on Android as an app. Switch to the app?")) { + window.location = "https://play.google.com/store/apps/details?id=im.vector.alpha"; + return; + } + } console.log("Vector starting at "+window.location); if (validBrowser) {