Преглед изворни кода

Make sure the converse object is globally available

We need it so that we can call initialize from the HTML template
JC Brand пре 12 година
родитељ
комит
c21a235243
1 измењених фајлова са 3 додато и 1 уклоњено
  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;
+});