diff options
author | David Baker <dave@matrix.org> | 2018-09-21 16:35:17 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2018-09-21 16:35:17 +0100 |
commit | 5e87db615a5e430627b17da5dfbd52f0ef7f4db9 (patch) | |
tree | 5e3c0798a6606b56b1fc75cc836c3380ac519d2e /javascript/olm_pre.js | |
parent | 122867c45c7f41b82a550a9665d34b7dda1c3ffa (diff) |
Make OLM_OPTIONS work again
The closure compiler was just renaming the variable so it never
would have picked them up. Make it an extern so it knows what to do.
Diffstat (limited to 'javascript/olm_pre.js')
-rw-r--r-- | javascript/olm_pre.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/javascript/olm_pre.js b/javascript/olm_pre.js index 5e8ed12..673b868 100644 --- a/javascript/olm_pre.js +++ b/javascript/olm_pre.js @@ -21,10 +21,8 @@ if (typeof(window) !== 'undefined') { } /* applications should define OLM_OPTIONS in the environment to override - * emscripten module settings (we still need to (re) declare the variable - * otherwise the closure compiler becomes sad). + * emscripten module settings */ -var OLM_OPTIONS; if (typeof(OLM_OPTIONS) !== 'undefined') { for (var olm_option_key in OLM_OPTIONS) { if (OLM_OPTIONS.hasOwnProperty(olm_option_key)) { |