Przeglądaj źródła

Make sure the converse object is globally available

We need it so that we can call initialize from the HTML template
JC Brand 12 lat temu
rodzic
commit
c21a235243
1 zmienionych plików z 3 dodań i 1 usunięć
  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;
+});