Merge branch 'dbkr/email_notifs' into develop

pull/1518/head
Matthew Hodgson 2016-05-13 15:16:35 +01:00
commit d9077584cd
1 changed files with 7 additions and 0 deletions

View File

@ -182,6 +182,13 @@ window.onload = function() {
}
function loadApp() {
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
if (confirm("Vector works much better on iOS as an app. Switch to the app?")) {
window.location = "https://itunes.apple.com/us/app/vector.im/id1083446067";
return;
}
}
console.log("Vector starting at "+window.location);
if (validBrowser) {
var MatrixChat = sdk.getComponent('structures.MatrixChat');