Commit 9bce2510 authored by JC Brand's avatar JC Brand

Allow non-amd usage of converse.js without requiring OTR modules.

parent 42b28b84
......@@ -30,7 +30,11 @@
evaluate : /\{\[([\s\S]+?)\]\}/g,
interpolate : /\{\{([\s\S]+?)\}\}/g
};
root.converse = factory(jQuery, _, OTR, DSA, console || {log: function(){}});
if ((typeof OTR !== "undefined") && (typeof DSA !== "undefined")) {
root.converse = factory(jQuery, _, OTR, DSA, console);
} else {
root.converse = factory(jQuery, _, undefined, undefined, console);
}
}
}(this, function ($, _, OTR, DSA, console) {
$.fn.addHyperlinks = function() {
......
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