altcha-org / altcha

GDPR compliant, self-hosted CAPTCHA alternative with PoW mechanism and advanced anti-spam filter.
https://altcha.org
MIT License
509 stars 17 forks source link

Worker.js filename #54

Closed Ian-Webb closed 3 months ago

Ian-Webb commented 4 months ago

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

ovx commented 4 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)

Ian-Webb commented 4 months ago

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 3 months ago

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