From d919e81216586b61053d98b0586f0bf4adbc8c16 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 14 Mar 2019 21:05:39 +0100 Subject: [PATCH] Set up XML logging before emitting connectionInitialized --- dist/converse.js | 4 ++-- src/headless/converse-core.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {