diff options
author | Matthew Hodgson <matthew@matrix.org> | 2020-05-16 17:11:54 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2020-05-16 17:11:54 +0100 |
commit | ddd140b23d4352f7fb5164c42db3ef5e1714fe36 (patch) | |
tree | cb2fb8dff3215ffca77a4a320367ab05fd175a1f /javascript | |
parent | 14c1db02fe8a5730c840949b2639ccfa99fe84a6 (diff) |
fix group demo to work with Olm.init()
Diffstat (limited to 'javascript')
-rw-r--r-- | javascript/demo/group_demo.js | 6 |
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); |