Pārlūkot izejas kodu

Add `log` method to API.

JC Brand 9 gadi atpakaļ
vecāks
revīzija
2805bf8020
2 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 3 0
      dev.html
  2. 1 0
      src/converse-api.js

+ 3 - 0
dev.html

@@ -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,

+ 1 - 0
src/converse-api.js

@@ -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;