9c5b033c0ab0f6bab5c4ab4f896f1e46334b9001
Change the high-score endpoint URL in storage.js from "/api/highscores" to "./api/highscores". When serving the web build from a subpath rather than the domain root, an absolute path sends fetch requests to the domain root instead of the nested application path. Using a relative URL ensures requests resolve relative to the active document path while still working when hosted at root. Test Plan: - `node --check tdkpin-rs/web/storage.js` -- passed - `npx prettier --check tdkpin-rs/web/storage.js` -- passed - `just test` -- passed (138 game tests, 3 highscore-server tests) - `just clippy` -- passed - `git diff --cached --check` -- passed
Description
No description provided
22 MiB
Languages
C
73.8%
Rust
13.9%
C++
5.1%
Python
4.1%
Shell
1.4%
Other
1.6%