Skip to content

Commit

Permalink
Added roomclient to window, and gated join check in case user has not…
Browse files Browse the repository at this point in the history
… set the config
  • Loading branch information
sebjf committed Feb 20, 2024
1 parent c286c65 commit 0316ad9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Browser/samples/hello/hello.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,12 @@ function f(){
}
window.requestAnimationFrame(f);

roomClient.join(config.room);
if(config.room.length && config.room.length > 0){
roomClient.join(config.room);
}

// Assign the roomclient to a Tab-wide variable so we can join a room manually if we wish
window.ubiq.roomclient = roomClient;

export function hello(){
alert("Hello World");
Expand Down

0 comments on commit 0316ad9

Please sign in to comment.