Allow non-amd usage of converse.js without requiring OTR modules.
This commit is contained in:
parent
42b28b8425
commit
9bce25109c
@ -30,7 +30,11 @@
|
|||||||
evaluate : /\{\[([\s\S]+?)\]\}/g,
|
evaluate : /\{\[([\s\S]+?)\]\}/g,
|
||||||
interpolate : /\{\{([\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) {
|
}(this, function ($, _, OTR, DSA, console) {
|
||||||
$.fn.addHyperlinks = function() {
|
$.fn.addHyperlinks = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user