fix: enable presence and collab sync for demo space users
Remove the demo exclusion guard so demo space gets the full offline runtime, WebSocket presence relay, and Automerge sync. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
34f0387c88
commit
0c83a8257c
|
|
@ -53,7 +53,7 @@ RStackUserDashboard.define();
|
||||||
// Instantiate the shared runtime from the space slug on the <body> tag.
|
// Instantiate the shared runtime from the space slug on the <body> tag.
|
||||||
// Components access it via window.__rspaceOfflineRuntime.
|
// Components access it via window.__rspaceOfflineRuntime.
|
||||||
const spaceSlug = document.body?.getAttribute("data-space-slug");
|
const spaceSlug = document.body?.getAttribute("data-space-slug");
|
||||||
if (spaceSlug && spaceSlug !== "demo") {
|
if (spaceSlug) {
|
||||||
const runtime = new RSpaceOfflineRuntime(spaceSlug);
|
const runtime = new RSpaceOfflineRuntime(spaceSlug);
|
||||||
(window as any).__rspaceOfflineRuntime = runtime;
|
(window as any).__rspaceOfflineRuntime = runtime;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue