Skip to content

Commit 77355cb

Browse files
committed
Add some debug to help with FF restore bug
(element-hq#1354)
1 parent 0deb52a commit 77355cb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/vector/index.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ function parseQs(location) {
104104
// Here, we do some crude URL analysis to allow
105105
// deep-linking.
106106
function routeUrl(location) {
107+
console.log("Routing URL "+window.location);
107108
var params = parseQs(location);
108109
var loginToken = params.loginToken;
109110
if (loginToken) {
@@ -158,6 +159,7 @@ var makeRegistrationUrl = function() {
158159

159160
window.addEventListener('hashchange', onHashChange);
160161
window.onload = function() {
162+
console.log("window.onload");
161163
if (!validBrowser) {
162164
return;
163165
}
@@ -172,6 +174,7 @@ window.onload = function() {
172174
}
173175

174176
function loadApp() {
177+
console.log("Vector starting at "+window.location);
175178
if (validBrowser) {
176179
var MatrixChat = sdk.getComponent('structures.MatrixChat');
177180
var fragParts = parseQsFromFragment(window.location);

0 commit comments

Comments
 (0)