index.js: fix wording in android popup

pull/1609/head
Richard van der Hoff 2016-06-07 22:01:56 +01:00
parent c6cf5febd5
commit ed1554f4af
1 changed files with 6 additions and 6 deletions

View File

@ -184,18 +184,18 @@ window.onload = function() {
function getConfig() { function getConfig() {
let deferred = q.defer(); let deferred = q.defer();
request( request(
{ method: "GET", url: "config.json", json: true }, { method: "GET", url: "config.json", json: true },
(err, response, body) => { (err, response, body) => {
if (err || response.status < 200 || response.status >= 300) { if (err || response.status < 200 || response.status >= 300) {
throw "failed to load config.json"; throw "failed to load config.json";
} }
deferred.resolve(body); deferred.resolve(body);
} }
); );
return deferred.promise; return deferred.promise;
} }
@ -207,14 +207,14 @@ async function loadApp() {
} }
} }
else if (/Android/.test(navigator.userAgent)) { else if (/Android/.test(navigator.userAgent)) {
if (confirm("Vector runs much better as an app on Vector. Get the app?")) { if (confirm("Vector runs much better as an app on Android. Get the app?")) {
window.location = "https://play.google.com/store/apps/details?id=im.vector.alpha"; window.location = "https://play.google.com/store/apps/details?id=im.vector.alpha";
return; return;
} }
} }
let configJson = await getConfig(); let configJson = await getConfig();
console.log("Vector starting at "+window.location); console.log("Vector starting at "+window.location);
if (validBrowser) { if (validBrowser) {
var MatrixChat = sdk.getComponent('structures.MatrixChat'); var MatrixChat = sdk.getComponent('structures.MatrixChat');