loading olm from the worker was broken, reading the wrong global

This commit is contained in:
Bruno Windels 2021-12-06 15:35:08 +01:00
parent 0e2a22f509
commit 5bd28da4f3

View file

@ -108,7 +108,7 @@ class MessageHandler {
self.window = self;
self.document = {};
self.importScripts(path);
const olm = self.olm_exports;
const olm = self.Olm;
await olm.init();
this._olm = olm;
});