diff --git a/src/components/RevealManager.tsx b/src/components/RevealManager.tsx index 06170f4..983bc90 100644 --- a/src/components/RevealManager.tsx +++ b/src/components/RevealManager.tsx @@ -95,11 +95,11 @@ export const RevealManager: Component = () => { if (dom) cleanupInjections(dom); }); - // ---- GM hover listeners ---- + // ---- GM hover listeners (only when connected as GM) ---- createEffect(() => { const dom = contentDom(); const state = journalStreamState; - if (!dom || state.myRole !== "gm") return; + if (!dom || state.myRole !== "gm" || !state.connected) return; const normalized = normalizePath(location.pathname); const data = comp.data; @@ -121,7 +121,6 @@ export const RevealManager: Component = () => { const combinedSlug = colSlug ? pageSparkSlugs.find((s) => s.endsWith(`-${colSlug}`)) : undefined; - console.log(data.sparkTables, normalized, pageSparkSlugs, colSlug); if (combinedSlug) { show({ rect: sparkTable.getBoundingClientRect(),