Bug: undefined data.mode in hero:theme listener causes ReferenceError #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Description
The admin dashboard (
src/channels/admin.ts) needs ahero:themepostMessage listener so it can sync dark/light mode and CSS custom properties when embedded as an iframe inside Hero OS.What it does
hero:thememessages from the Hero OS shell--var) ondocument.documentElementlight/darkclass anddata-bs-themeattribute for Bootstrap 5.3 compatibilityhero:theme-readysignal back to parent when loaded in iframePR