Skip to content
Snippets Groups Projects
Commit c4a39186 authored by David Baker's avatar David Baker
Browse files

Support passing olm options into init()

parent 498562fa
No related branches found
No related tags found
No related merge requests found
var olmInitPromise;
olm_exports['init'] = function() {
olm_exports['init'] = function(opts) {
if (olmInitPromise) return olmInitPromise;
if (opts) OLM_OPTIONS = opts;
olmInitPromise = new Promise(function(resolve, reject) {
onInitSuccess = function() {
resolve();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment