Specify dependencies, so that their initialize methods get called first

This commit is contained in:
JC Brand 2017-12-17 15:01:45 +00:00
parent de864bd6f9
commit bc81a3d680

View File

@ -34,6 +34,9 @@
const { Backbone, Promise, Strophe, $iq, b64_sha1, sizzle, _ } = converse.env; const { Backbone, Promise, Strophe, $iq, b64_sha1, sizzle, _ } = converse.env;
converse.plugins.add('converse-bookmarks', { converse.plugins.add('converse-bookmarks', {
optional_dependencies: ["converse-chatboxes", "converse-muc"],
overrides: { overrides: {
// Overrides mentioned here will be picked up by converse.js's // Overrides mentioned here will be picked up by converse.js's
// plugin architecture they will replace existing methods on the // plugin architecture they will replace existing methods on the