Commit c4a39186 authored by David Baker's avatar David Baker
Browse files

Support passing olm options into init()

parent 498562fa
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() {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment