Browse Source

Specify dependencies, so that their `initialize` methods get called first

JC Brand 7 năm trước cách đây
mục cha
commit
bc81a3d680
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/converse-bookmarks.js

+ 3 - 0
src/converse-bookmarks.js

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