Hello everyone. I have such a question. There is a small plugin that does only what saves user points and sends them to the server. I am not the author of it, I am very superficially familiar with constuct3.The plugin works fine in chrome. I also need to make it work on both ios with safari and firefox. Unfortunately, there is a big problem in these browsers that prevents the plugin from working - it is sending messages via self.postmessage to web workers.
This works fine in chrome, but problems start with safari and firefox.
As far as I could understand, during initialization, the constuct3 engine checks which software environment we use,
and if OffscreenCanvas (I'm not sure exactly if it is the main culprit) is not supported by the browser, then web workers simply does not initialize (1 screenshot). Then, after going through the debugger, I saw that in non-working browsers "self" stores "window", and in chrome "self" - "DedicatedWorkerGlobalScope" (2,3 screenshot), and therefore chrome sends everything perfectly, and firefox and safari require another argument(I tried adding "*" with the second argument, it doesn't help). I actually have a question, is it possible to somehow make the program work on firefox and ios without rewriting it completely, if the mechanics of the add-on is tied to web workers? I tried to write _useWorker = true directly in the code, but initialization still does not happen.