Skip to content

Commit

Permalink
openvidu-fault-tolerance: Prevent sessionId assignment if join is hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
cruizba committed Jun 18, 2023
1 parent 45e71c6 commit 70e81c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openvidu-fault-tolerance/src/main/resources/static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ async function connectToSessionWithToken(token) {

async function getToken() {

sessionId = $("#sessionId").val(); // Video-call chosen by the user
// Check if #join is hidden
if ($('#join').is(':visible')) {
sessionId = $("#sessionId").val(); // Video-call chosen by the user
}
var mustRetry = true;

while (mustRetry) {
Expand Down

0 comments on commit 70e81c2

Please sign in to comment.