Merge pull request #993 from vector-im/dbkr/keypair_3pid_invites
Pass through params for other URLs
This commit is contained in:
commit
497cb8bc9c
|
@ -87,8 +87,7 @@ function parseQs(location) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Here, we do some crude URL analysis to allow
|
// Here, we do some crude URL analysis to allow
|
||||||
// deep-linking. We only support registration
|
// deep-linking.
|
||||||
// deep-links in this example.
|
|
||||||
function routeUrl(location) {
|
function routeUrl(location) {
|
||||||
var params = parseQs(location);
|
var params = parseQs(location);
|
||||||
var loginToken = params.loginToken;
|
var loginToken = params.loginToken;
|
||||||
|
@ -99,7 +98,7 @@ function routeUrl(location) {
|
||||||
window.matrixChat.showScreen('register', parseQsFromFragment(location));
|
window.matrixChat.showScreen('register', parseQsFromFragment(location));
|
||||||
} else {
|
} else {
|
||||||
var hashparts = location.hash.split('?');
|
var hashparts = location.hash.split('?');
|
||||||
window.matrixChat.showScreen(hashparts[0].substring(2));
|
window.matrixChat.showScreen(hashparts[0].substring(2), parseQsFromFragment(location));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue