NativeScript / worker-loader

36 stars 20 forks source link

Adding Support for Comlink library #80

Open limitless-brain opened 3 years ago

limitless-brain commented 3 years ago

Comlink makes WebWorkers enjoyable and easy to use, but when I tried to use it's not working. I tried to trace it down, and I found for some reason the function expose isn't running correctly. The function addEventListener isn’t found, and I got an error message with the following content.

TypeError: ep.addEventListener is not a function

NativeScript: 7.3.0 Android Device: Samsung A52 Android 11 Comlink: 4.3.1