Revert "zebra-spaces: auto-rejoin pre-fills code only" — restore auto-join

The one-extra-tap trade was supposed to fix Firefox Android listener
audio by preserving the entry-click gesture. In practice the phone
listener still landed silent on rejoin AND we paid the friction cost
on every tab refresh. Restore the original setTimeout(joinSpace, 100)
so a hard refresh resumes the last space the way every other refresh
in this codebase has.

The Firefox Android autoplay issue is real but lives in the audio
pool / attachSfuTrack path, not at the auto-rejoin boundary.
This commit is contained in:
Russell Ballestrini 2026-06-04 10:01:17 -04:00
parent 358a8648f9
commit f388d64f3b
No known key found for this signature in database

View file

@ -4872,12 +4872,8 @@ $('btn-copy-share').addEventListener('click', async () => {
return;
}
$('rdv-code').value = saved;
/* Don't auto-call joinSpace. Without a user gesture the audio
* pool can't be primed (Firefox Android refuses unmuted autoplay)
* and listener phones land silent. Pre-fill the code; one tap on
* 'enter' resumes with working audio. */
logLine('', 'last space: '+saved+' — click enter to resume');
setStatus('click enter to resume — '+saved, 'warn');
logLine('', 'auto-rejoining last space …');
setTimeout(() => { joinSpace().catch(e => logLine('err', 'auto-rejoin failed: ' + e.message)); }, 100);
})();
/* games as left-column tiles — click to spotlight, broadcast through
@ -4948,8 +4944,8 @@ logLine('', 'ready — pick a handle, type a rendezvous code, enter the space');
<footer style="margin:2.2rem auto 0;font-size:0.65rem;color:#999;line-height:1.7;word-break:break-all;font-family:monospace">
<span id="pi-seal" style="color:#777;cursor:default;user-select:none" title="">page integrity</span> &nbsp;·&nbsp; built <span class="stamp-date">2026-06-04</span><br>
md5 <span class="stamp-md5">884a96ec7223a1a6998a58c20135b48c</span><br>
sha256 <span class="stamp-sha">5e7cb79da69ca902af2a9f365fc851e89b370f3e8316633e28144cd1e53a5311</span><br>
md5 <span class="stamp-md5">669ef155bc5fd5e8a1452e593f3b257d</span><br>
sha256 <span class="stamp-sha">1242cf6e1835f9e2e1bb40c51b3b83cc7ed2c9bcd69b6593a5bea70835054ac5</span><br>
<span style="color:#bbb">hashes are of this page with these two fields zeroed — to verify, blank them and re-hash</span><br>
<span style="color:#bbb">one self-contained file — <strong>save a copy</strong> and verify against these hashes; point at your own servers with ?signal= and ?turncred=, or <a href="host-your-own.html" style="color:#999">host your own community</a></span>
</footer>