aboutsummaryrefslogtreecommitdiff
path: root/javascript/demo
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2020-05-16 17:11:54 +0100
committerMatthew Hodgson <matthew@matrix.org>2020-05-16 17:11:54 +0100
commitddd140b23d4352f7fb5164c42db3ef5e1714fe36 (patch)
treecb2fb8dff3215ffca77a4a320367ab05fd175a1f /javascript/demo
parent14c1db02fe8a5730c840949b2639ccfa99fe84a6 (diff)
fix group demo to work with Olm.init()
Diffstat (limited to 'javascript/demo')
-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);