Skip to content

Commit d919e81

Browse files
committed
Set up XML logging before emitting connectionInitialized
1 parent 5b4ce87 commit d919e81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/converse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63302,6 +63302,8 @@ _converse.initConnection = function () {
6330263302
}
6330363303
}
6330463304

63305+
setUpXMLLogging();
63306+
6330563307
_converse.emit('connectionInitialized');
6330663308
};
6330763309

@@ -63327,8 +63329,6 @@ function finishInitialization() {
6332763329

6332863330
_converse.initConnection();
6332963331

63330-
setUpXMLLogging();
63331-
6333263332
_converse.logIn();
6333363333

6333463334
_converse.registerGlobalEventHandlers();

src/headless/converse-core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ _converse.initConnection = function () {
396396
throw new Error("initConnection: this browser does not support websockets and bosh_service_url wasn't specified.");
397397
}
398398
}
399+
setUpXMLLogging();
399400
_converse.emit('connectionInitialized');
400401
}
401402

@@ -419,7 +420,6 @@ function finishInitialization () {
419420
initClientConfig();
420421
initPlugins();
421422
_converse.initConnection();
422-
setUpXMLLogging();
423423
_converse.logIn();
424424
_converse.registerGlobalEventHandlers();
425425
if (!Backbone.history.started) {

0 commit comments

Comments
 (0)