altcha-org/altcha

Worker.js filename

Ian-Webb opened this issue · 3 comments

To reduce the chance of filename clashes, would it be possible to change 'worker.js' to 'altcha-worker.js', or similar?

ovx commented

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 ;)

ovx commented

I would recommend creating an installation script that renames it for you.