From 77355cbeb49fff223260b51cb9a6c5d8704ce14d Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 13 Apr 2016 21:01:24 +0100 Subject: [PATCH] Add some debug to help with FF restore bug (https://github.com/vector-im/vector-web/issues/1354) --- src/vector/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vector/index.js b/src/vector/index.js index b7ff42cf..37ee1592 100644 --- a/src/vector/index.js +++ b/src/vector/index.js @@ -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);