Skip to content
Snippets Groups Projects
Commit ba6c73cc authored by Greg Fodor's avatar Greg Fodor
Browse files

Hide headset link on phones, use entry code based hub.link in HUD

parent 506c2785
No related branches found
No related tags found
No related merge requests found
...@@ -263,7 +263,7 @@ async function handleHubChannelJoined(entryManager, hubChannel, data) { ...@@ -263,7 +263,7 @@ async function handleHubChannelJoined(entryManager, hubChannel, data) {
document document
.querySelector("#hud-hub-entry-link") .querySelector("#hud-hub-entry-link")
.setAttribute("text", { value: `hub.link/${hub.hub_id}`, width: 1.1, align: "center" }); .setAttribute("text", { value: `hub.link/${hub.entry_code}`, width: 1.1, align: "center" });
scene.setAttribute("networked-scene", { scene.setAttribute("networked-scene", {
room: hub.hub_id, room: hub.hub_id,
......
...@@ -249,17 +249,20 @@ class LinkRoot extends Component { ...@@ -249,17 +249,20 @@ class LinkRoot extends Component {
</div> </div>
<div className={styles.footer}> <div className={styles.footer}>
<div {!this.state.isAlphaMode &&
className={styles.linkHeadsetFooterLink} this.props.showHeadsetLinkOption && (
style={{ visibility: this.state.isAlphaMode ? "hidden" : "visible" }} <div
> className={styles.linkHeadsetFooterLink}
<img onClick={() => this.toggleMode()} src={HeadsetIcon} className={styles.headsetIcon} /> style={{ visibility: this.state.isAlphaMode ? "hidden" : "visible" }}
<span> >
<a href="#" onClick={() => this.toggleMode()}> <img onClick={() => this.toggleMode()} src={HeadsetIcon} className={styles.headsetIcon} />
<FormattedMessage id="link.linking_a_headset" /> <span>
</a> <a href="#" onClick={() => this.toggleMode()}>
</span> <FormattedMessage id="link.linking_a_headset" />
</div> </a>
</span>
</div>
)}
</div> </div>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment