Release 2.5.1: admin loads again #6
Loading…
Reference in a new issue
No description provided.
Delete branch "Dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hotfix for 2.5.0: the admin would not load.
Cause: admin.js declared
CARD_KINDStwice at top level — 2.5.0 added one for the service-card integrations, and the Home Assistant cards already had one. A duplicate top-levelconstis a SyntaxError for the whole module, so the admin page loaded nothing. The home page was unaffected. My pre-release check rannode --checkin a mode that did not treat the file as an ES module, so it missed it.Fix: renamed the new one
SERVICE_CARD_KINDS. Also inlined the colours of the Radarr and Pi-hole logos (their<style>blocks are blocked by the CSP).No migration — schema stays 14. 2.5.1.zip: 8,099,711 bytes, SHA-256
95d7e0b8ac4b13bba6cc2f57600051b0c6505403089175738bec907755987aff.Verified this time in a real (headless Chromium) browser against a throwaway 2.5.x install with fake data: home page, admin, integrations list, an integration page, its Cards page, the card editor and the admin device popup all load with no JavaScript errors; cards, the Hardware tab (drives + shares) and acks render. Every JS file in the ZIP parses as an ES module.