Files
MagicMirror/js/http_fetcher.js
Kristjan ESPERANTO 0905d66a91 polish HTTP 304 docs/test/handling (#4129)
After #4120 was merged, here's a bit of polish on top.

- docs: Optimize JSDoc and comments.
- test: The existing 304 test is moved to the dedicated status code
block and extended with an `errorSpy` to also verify that no `error`
event is emitted.
- refactor: The success branch is moved before the error branch in
`fetch()`. This is more intuitive.

The bottom line is that this PR improves maintainability. For users,
this PR doesn't change anything.
2026-05-01 00:02:01 +02:00

12 KiB