diff --git a/dist/converse.js b/dist/converse.js index fb5aaea0e..8002de426 100644 --- a/dist/converse.js +++ b/dist/converse.js @@ -63302,6 +63302,8 @@ _converse.initConnection = function () { } } + setUpXMLLogging(); + _converse.emit('connectionInitialized'); }; @@ -63327,8 +63329,6 @@ function finishInitialization() { _converse.initConnection(); - setUpXMLLogging(); - _converse.logIn(); _converse.registerGlobalEventHandlers(); diff --git a/src/headless/converse-core.js b/src/headless/converse-core.js index 974770c12..2aa26b896 100644 --- a/src/headless/converse-core.js +++ b/src/headless/converse-core.js @@ -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) {