aboutsummaryrefslogtreecommitdiff
path: root/javascript/olm_suffix.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/olm_suffix.js')
-rw-r--r--javascript/olm_suffix.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/javascript/olm_suffix.js b/javascript/olm_suffix.js
index ec0e39b..7f19953 100644
--- a/javascript/olm_suffix.js
+++ b/javascript/olm_suffix.js
@@ -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();