Skip to content

Commit

Permalink
Fix a minor order-of-operations bug
Browse files Browse the repository at this point in the history
  • Loading branch information
toji committed Jun 7, 2023
1 parent b82ef38 commit f093280
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spectator-mode.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@
spectatorButton.textContent = 'Enable spectator mode';
spectatorButton.addEventListener('click', onEnableSpectatorMode);
mainElement.appendChild(spectatorButton);

// Hide the non-exclusive session's output canvas so that we can see
// the button.
gl.canvas.style.display = 'none';
} else {
// This is really just for debugging, since it's useful to have
// spectator mode start automatically in some testing scenarios.
onEnableSpectatorMode();
}

// Hide the non-exclusive session's output canvas so that we can see
// the button.
gl.canvas.style.display = 'none';
});
}

Expand Down

0 comments on commit f093280

Please sign in to comment.