mirror of https://github.com/vector-im/riot-web
Add some debug to help with FF restore bug
(https://github.com/vector-im/vector-web/issues/1354)pull/1391/head
parent
0deb52ac5e
commit
77355cbeb4
|
@ -104,6 +104,7 @@ function parseQs(location) {
|
|||
// Here, we do some crude URL analysis to allow
|
||||
// deep-linking.
|
||||
function routeUrl(location) {
|
||||
console.log("Routing URL "+window.location);
|
||||
var params = parseQs(location);
|
||||
var loginToken = params.loginToken;
|
||||
if (loginToken) {
|
||||
|
@ -158,6 +159,7 @@ var makeRegistrationUrl = function() {
|
|||
|
||||
window.addEventListener('hashchange', onHashChange);
|
||||
window.onload = function() {
|
||||
console.log("window.onload");
|
||||
if (!validBrowser) {
|
||||
return;
|
||||
}
|
||||
|
@ -172,6 +174,7 @@ window.onload = function() {
|
|||
}
|
||||
|
||||
function loadApp() {
|
||||
console.log("Vector starting at "+window.location);
|
||||
if (validBrowser) {
|
||||
var MatrixChat = sdk.getComponent('structures.MatrixChat');
|
||||
var fragParts = parseQsFromFragment(window.location);
|
||||
|
|
Loading…
Reference in New Issue