Closed Ian-Webb closed 3 months ago
Hi, I assume your using the dist_external files. You can simply rename the wokrer.js and configure workerurl
(configuration) on the widget to point to your worker file.
The default workerurl is constructed like this: new URL(url || './worker.js', import.meta.url)
Yes, you're absolutely correct. However, I would have to do this every time I downloaded an updated version of Altcha. And I have a terrible memory ;)
I would recommend creating an installation script that renames it for you.
To reduce the chance of filename clashes, would it be possible to change 'worker.js' to 'altcha-worker.js', or similar?