aboutsummaryrefslogtreecommitdiff
path: root/javascript/demo/group_demo.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/demo/group_demo.js')
-rw-r--r--javascript/demo/group_demo.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/javascript/demo/group_demo.js b/javascript/demo/group_demo.js
index 42a3d84..7cd9e3e 100644
--- a/javascript/demo/group_demo.js
+++ b/javascript/demo/group_demo.js
@@ -489,4 +489,8 @@ function startDemo() {
}
-document.addEventListener("DOMContentLoaded", startDemo, false);
+document.addEventListener("DOMContentLoaded", function() {
+ Olm.init().then(function() {
+ startDemo();
+ });
+}, false);