Register the compass component. Put it on any entity, once per scene:
el.setAttribute(COMPASS_COMPONENT, { xr });
Its colours are read from the page's theme when it is built; re-add it to pick up a new one.
Register the compass component. Put it on any entity, once per scene:
el.setAttribute(COMPASS_COMPONENT, { xr });
Its colours are read from the page's theme when it is built; re-add it to pick up a new one.