diff options
author | David Baker <dave@matrix.org> | 2018-10-10 20:15:40 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2018-10-10 20:15:40 +0100 |
commit | e73ebcea67b50ada065a362ec774bd66ec47b065 (patch) | |
tree | 7985ce06cb2a30f5b582fcec416c95f725a30dff /javascript/olm_suffix.js | |
parent | f6e3f7f44aef5bb84173e87869928bd9922aaf96 (diff) | |
parent | 3cfcf1615dfe434e1aa10d5c904d537b159e1566 (diff) |
Merge remote-tracking branch 'origin/master' into dbkr/pk_private_export_import
Diffstat (limited to 'javascript/olm_suffix.js')
-rw-r--r-- | javascript/olm_suffix.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/javascript/olm_suffix.js b/javascript/olm_suffix.js index 7f19953..3e2f664 100644 --- a/javascript/olm_suffix.js +++ b/javascript/olm_suffix.js @@ -24,7 +24,9 @@ if (typeof(window) !== 'undefined') { window["Olm"] = olm_exports; } -// Emscripten sets the module exports to be its module -// with wrapped c functions. Clobber it with our higher -// level wrapper class. -module.exports = olm_exports; +if (typeof module === 'object') { + // Emscripten sets the module exports to be its module + // with wrapped c functions. Clobber it with our higher + // level wrapper class. + module.exports = olm_exports; +} |