Add some debug to help with FF restore bug

(https://github.com/vector-im/vector-web/issues/1354)
pull/1391/head
Richard van der Hoff 2016-04-13 21:01:24 +01:00
parent 0deb52ac5e
commit 77355cbeb4
1 changed files with 3 additions and 0 deletions

View File

@ -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);