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