Browse Source

Make sure the converse object is globally available

We need it so that we can call initialize from the HTML template
JC Brand 12 năm trước cách đây
mục cha
commit
c21a235243
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      main.js

+ 3 - 1
main.js

@@ -1 +1,3 @@
-require(["jquery", "converse"], function($, converse) {});
+require(["jquery", "converse"], function($, converse) {
+    window.converse = converse;
+});