Commit 2805bf80 authored by JC Brand's avatar JC Brand

Add `log` method to API.

parent b4aeb942
...@@ -57,11 +57,14 @@ ...@@ -57,11 +57,14 @@
i18n: locales['af'], i18n: locales['af'],
auto_join_rooms: [ auto_join_rooms: [
'discuss@conference.conversejs.org', 'discuss@conference.conversejs.org',
'prosody@conference.prosody.im',
'jdev@conference.jabber.org'
], ],
auto_reconnect: true, auto_reconnect: true,
bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
keepalive: true, keepalive: true,
message_carbons: true, message_carbons: true,
message_archiving: 'always',
play_sounds: true, play_sounds: true,
roster_groups: true, roster_groups: true,
show_controlbox_by_default: true, show_controlbox_by_default: true,
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
'initialize': function (settings, callback) { 'initialize': function (settings, callback) {
converse.initialize(settings, callback); converse.initialize(settings, callback);
}, },
'log': converse.log,
'connection': { 'connection': {
'connected': function () { 'connected': function () {
return converse.connection && converse.connection.connected || false; return converse.connection && converse.connection.connected || false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment