generated from Labyricorn/labyricorn-project-template
fix: correct observation embedding and orphan waiting state
This commit is contained in:
@@ -337,6 +337,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
channelName: XZBTSurfaceMode.channelName(xzbtInstanceId),
|
||||
timeoutMs: 1500,
|
||||
onSnapshot: (values, stateRevision, registryRevision, presentation) => {
|
||||
document.body.classList.remove('surface-waiting');
|
||||
Object.keys(values || {}).forEach(target => applyPresentationState(target, values[target]));
|
||||
if (presentation && typeof presentation.tickerText === 'string' && presentation.tickerText) {
|
||||
const ticker = document.getElementById('observation-ticker-text');
|
||||
@@ -368,6 +369,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
// No console instance open on this channel (or a stale/unknown
|
||||
// ?xi=). Degrade to a clear waiting state rather than inventing
|
||||
// local authority (report SS9, Museum's proven behavior).
|
||||
document.body.classList.add('surface-waiting');
|
||||
console.warn('[SciFi-XZBT] Observation surface: no console instance found for xi=' + xzbtInstanceId);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user