Skip to content

Fix atracdenc public path resolution in worker#97

Closed
yooamatwa-pixel wants to merge 1 commit into
asivery:masterfrom
yooamatwa-pixel:fix-atracdenc-public-path
Closed

Fix atracdenc public path resolution in worker#97
yooamatwa-pixel wants to merge 1 commit into
asivery:masterfrom
yooamatwa-pixel:fix-atracdenc-public-path

Conversation

@yooamatwa-pixel

Copy link
Copy Markdown

I hit this while testing local and live builds where encoding failed during worker initialisation.

This fixes atracdenc.js being resolved incorrectly from inside the ATRACDENC worker.

Before this change, the worker could attempt to load:

http://atracdenc.js/

which causes importScripts() to fail with a NetworkError.

This updates the public path handling so the worker resolves atracdenc.js against the current origin, producing paths such as:

http://localhost:5173/atracdenc.js
http://localhost:4173/atracdenc.js

Tested locally with Vite dev/preview after confirming atracdenc.js is present in public.

@asivery

asivery commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Bad typo - sorry about that - fixed in b54f30a

@asivery asivery closed this Jun 19, 2026
@asivery

asivery commented Jun 19, 2026

Copy link
Copy Markdown
Owner

The migration from Azure is still underway when it comes to web.minidisc.wiki, so I cannot update that server just yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants