mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-12-06 11:14:26 +00:00
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.
10 lines
368 B
JavaScript
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);
|