Prechádzať zdrojové kódy

Make sure the converse object is globally available

We need it so that we can call initialize from the HTML template
JC Brand 12 rokov pred
rodič
commit
c21a235243
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  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;
+});