Closed WaldemarLehner closed 5 years ago
Hi. I will try to look during this week
I updated tests and everything work b64cc89
Can you show how do you use canvasWorker
function?
And where do you try to send messages?
I think I found the root of the issue.
It seems to be an issue with laravel-mix and/or webpack and the fact that im splitting the webworker into a vendor, manifest, and main file. Removing mix.extract()
from the webpack-mix.js
fixed the issue for me.
Yeah. I feel pretty stupid in retrospect. 😂
Hello. I'm trying to get the messages from the Web Worker. This works, when
canvas.transferControlToOffscreen
is not supported but does not work when it is supported. In the picture below you can see Mozilla Firefox (66.0.5) on the left and Chrome (74.0.3729.157) on the right.This is my worker file:
And this is the file where I create the Worker.
Now I'm wondering if that is a bug with the polyfill or with my code?