Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs(ar-studio): correct the room-button comment to the reason that actually holds

nirholas024404b0a05b
diff --git a/src/ar-studio.js b/src/ar-studio.js
index 67b24e34a..7c8d3231c 100644
--- a/src/ar-studio.js
+++ b/src/ar-studio.js
@@ -800,10 +800,11 @@ function updateRoomButton() {
if (!roomBtn) return;
const live = !!net && (net.status === 'online' || net.status === 'connecting');
roomBtn.classList.toggle('is-active', live);
- // Two labels rather than one rewritten string: the idle one carries the page's
- // data-i18n binding (rewriting the button's text would overwrite the
- // translation with English), and the live one carries the room code, which
- // stays visible at phone widths where the idle label is hidden.
+ // Two labels rather than one rewritten string. The idle one carries the page's
+ // data-i18n binding, so writing the room code straight onto the button (what
+ // this used to do) replaced the visitor's translated "Share live" with English
+ // the first time the room state changed. Swapping which span is hidden leaves
+ // the translated label untouched.
const idleLabel = $('ars-room-label');
const codeLabel = $('ars-room-code-label');
if (idleLabel) idleLabel.hidden = live;