Sfoglia il codice sorgente

Make sure the converse object is globally available

We need it so that we can call initialize from the HTML template
JC Brand 12 anni fa
parent
commit
c21a235243
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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;
+});