aboutsummaryrefslogtreecommitdiff
path: root/javascript/demo/group_demo.js
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2020-05-19 15:08:27 +0000
committerHubert Chathi <hubert@uhoreg.ca>2020-05-19 15:08:27 +0000
commitad173bc798c039bd4e855a25b99f15193bdb04c4 (patch)
treecb2fb8dff3215ffca77a4a320367ab05fd175a1f /javascript/demo/group_demo.js
parent5a9fdd85cb1ad54813df2ecd6eb24ff84e32656a (diff)
parentddd140b23d4352f7fb5164c42db3ef5e1714fe36 (diff)
Merge branch 'matthew/js-fixes' into 'master'
Fix JS demos, which had bitrotted See merge request matrix-org/olm!12
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);