37 lines
1.6 KiB
JavaScript
37 lines
1.6 KiB
JavaScript
|
/*global define */
|
||
|
if (typeof define !== 'undefined') {
|
||
|
// The section below determines which plugins will be included in a build
|
||
|
define([
|
||
|
"converse-core",
|
||
|
// PLEASE NOTE: By default all translations are included.
|
||
|
// You can modify the file src/locales.js to include only those
|
||
|
// translations that you care about.
|
||
|
|
||
|
/* START: Removable components
|
||
|
* --------------------
|
||
|
* Any of the following components may be removed if they're not needed.
|
||
|
*/
|
||
|
"converse-chatview", // Renders standalone chat boxes for single user chat
|
||
|
"converse-controlbox", // The control box
|
||
|
"converse-bookmarks", // XEP-0048 Bookmarks
|
||
|
"converse-mam", // XEP-0313 Message Archive Management
|
||
|
"converse-muc", // XEP-0045 Multi-user chat
|
||
|
"converse-vcard", // XEP-0054 VCard-temp
|
||
|
"converse-otr", // Off-the-record encryption for one-on-one messages
|
||
|
"converse-register", // XEP-0077 In-band registration
|
||
|
"converse-ping", // XEP-0199 XMPP Ping
|
||
|
"converse-notification",// HTML5 Notifications
|
||
|
"converse-headline", // Support for headline messages
|
||
|
/* END: Removable components */
|
||
|
], function (converse) {
|
||
|
var evt;
|
||
|
if (window.CustomEvent) {
|
||
|
evt = new CustomEvent('converse-loaded', {detail: {'converse': converse}});
|
||
|
} else {
|
||
|
evt = document.createEvent('CustomEvent');
|
||
|
evt.initCustomEvent('converse-loaded', true, true, {'converse': converse});
|
||
|
}
|
||
|
window.dispatchEvent(evt);
|
||
|
});
|
||
|
}
|