Set up XML logging before emitting connectionInitialized

This commit is contained in:
JC Brand 2019-03-14 21:05:39 +01:00
parent 5b4ce87a4d
commit d919e81216
2 changed files with 3 additions and 3 deletions

4
dist/converse.js vendored
View File

@ -63302,6 +63302,8 @@ _converse.initConnection = function () {
}
}
setUpXMLLogging();
_converse.emit('connectionInitialized');
};
@ -63327,8 +63329,6 @@ function finishInitialization() {
_converse.initConnection();
setUpXMLLogging();
_converse.logIn();
_converse.registerGlobalEventHandlers();

View File

@ -396,6 +396,7 @@ _converse.initConnection = function () {
throw new Error("initConnection: this browser does not support websockets and bosh_service_url wasn't specified.");
}
}
setUpXMLLogging();
_converse.emit('connectionInitialized');
}
@ -419,7 +420,6 @@ function finishInitialization () {
initClientConfig();
initPlugins();
_converse.initConnection();
setUpXMLLogging();
_converse.logIn();
_converse.registerGlobalEventHandlers();
if (!Backbone.history.started) {