This website requires JavaScript.
Explore
Help
Register
Sign in
timoreo
/
olm
Watch
1
Star
1
Fork
You've already forked olm
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
21ba95ade5
olm
/
javascript
/
olm_prefix.js
5 lines
81 B
JavaScript
Raw
Normal View
History
Unescape
Escape
do not pollute the global object
2020-10-03 03:46:15 +02:00
var
Olm
=
(
function
(
)
{
Another day, another interface Change the interface again, hopefully this time a bit more normal. Now we wrap the emscripten module completely and just expose the high level objects. The olm library export is now imported as normal (ie. returns a module rather than a function returning a module) but has an `init` method which *must* be called. This returns a promise which resolves when the module is ready. It also rejects if the module failed to set up, unlike before (and unlike the promise-not-a-promise that emscripten returns). Generally catch failures to init the module.
2018-09-25 18:13:29 +02:00
var
olm
_exports
=
{
}
;
var
onInitSuccess
;
var
onInitFail
;
Reference in a new issue
Copy permalink