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.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/javascript/olm_suffix.js b/javascript/olm_suffix.js
deleted file mode 100644
index d6f72b7..0000000
--- a/javascript/olm_suffix.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var olmInitPromise;
-
-olm_exports['init'] = function(opts) {
- if (olmInitPromise) return olmInitPromise;
-
- if (opts) OLM_OPTIONS = opts;
-
- olmInitPromise = new Promise(function(resolve, reject) {
- onInitSuccess = function() {
- resolve();
- };
- onInitFail = function(err) {
- reject(err);
- };
- Module();
- });
- return olmInitPromise;
-};
-
-return olm_exports;
-
-})();
-
-if (typeof(window) !== 'undefined') {
- // We've been imported directly into a browser. Define the global 'Olm' object.
- // (we do this even if module.exports was defined, because it's useful to have
- // Olm in the global scope for browserified and webpacked apps.)
- window["Olm"] = Olm;
-}
-
-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;
-}