Files
ukmesh/scripts/full-dev/ui/corescope-live-embed.js
T
gadgethd 1493b68846 Integrate the UKMesh DEV live map, Beacon feed and Health Check
Keep the tools inside the UKMesh website and open CoreScope in Live mode. Resolve packet paths when a reader selects a packet.

Add reversible DEV UI releases and an opt-in, isolated MQTT archive replay. A new checkout uses its configured MQTT intake.
2026-11-27 12:50:38 +00:00

10 lines
368 B
JavaScript

function syncLiveEmbed() {
const [route, query] = window.location.hash.slice(1).split('?', 2);
const embedded = window.parent !== window && route === '/live'
&& new URLSearchParams(query).get('embed') === '1';
document.documentElement.classList.toggle('ukmesh-live-embed', embedded);
}
syncLiveEmbed();
window.addEventListener('hashchange', syncLiveEmbed);