Support passing olm options into init()
This commit is contained in:
parent
498562fa65
commit
c4a3918686
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
|||
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();
|
||||
|
|
Loading…
Reference in a new issue