diff --git a/src/converse-core.js b/src/converse-core.js index 6a662dc44..8ed24b49a 100644 --- a/src/converse-core.js +++ b/src/converse-core.js @@ -85,7 +85,8 @@ 'converse-roomslist', 'converse-rosterview', 'converse-singleton', - 'converse-vcard' + 'converse-vcard', + 'converse-spoilers' ]; // Make converse pluggable diff --git a/src/converse-spoilers.js b/src/converse-spoilers.js new file mode 100644 index 000000000..f0182e888 --- /dev/null +++ b/src/converse-spoilers.js @@ -0,0 +1,155 @@ +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as a module called "myplugin" + define("converse-spoilers", ["converse"], factory); + } else { + // Browser globals. If you're not using a module loader such as require.js, + // then this line below executes. Make sure that your plugin's