Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
14c1db02
Commit
14c1db02
authored
May 16, 2020
by
Matthew Hodgson
Browse files
fix 1:1 demo to work with Olm.init()
parent
fdf25eb3
Changes
1
Show whitespace changes
Inline
Side-by-side
javascript/demo/one_to_one_demo.html
View file @
14c1db02
...
...
@@ -2,7 +2,13 @@
<head>
<script
src=
"../olm.js"
></script>
<script>
document
.
addEventListener
(
"
DOMContentLoaded
"
,
function
(
event
)
{
document
.
addEventListener
(
"
DOMContentLoaded
"
,
function
()
{
Olm
.
init
().
then
(
function
()
{
demo
();
});
},
false
);
function
demo
()
{
function
progress
(
who
,
message
)
{
var
message_element
=
document
.
createElement
(
"
pre
"
);
var
progress
=
document
.
getElementById
(
who
+
"
_progress
"
);
...
...
@@ -109,7 +115,7 @@ document.addEventListener("DOMContentLoaded", function (event) {
glue_encrypt
(
"
bob
"
,
"
alice
"
,
b_session
);
glue_decrypt
(
"
alice
"
,
a_session
);
});
},
false
);
}
</script>
<body>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment