Commit 7f4f3d7d authored by JC Brand's avatar JC Brand

Add default config options to converse.js

parent 1311ae06
......@@ -2510,6 +2510,13 @@
};
converse.initialize = function (settings) {
// Default values
this.animate = true;
this.auto_list_rooms = false;
this.auto_subscribe = false;
this.hide_muc_server = false;
this.prebind = false;
this.xhr_user_search = false;
_.extend(this, settings);
this.chatboxes = new this.ChatBoxes();
this.chatboxesview = new this.ChatBoxesView({model: this.chatboxes});
......
require(["jquery", "converse"], function($, converse) {
converse.initialize({
animate: true,
bosh_service_url: 'https://bind.opkode.im', // Please use this connection manager only for testing purposes
prebind: false,
xhr_user_search: false,
auto_subscribe: false,
auto_list_rooms: false
bosh_service_url: 'https://bind.opkode.im' // Please use this connection manager only for testing purposes
});
});
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