Skip to content

Commit

Permalink
fix: viewer remove
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsetkookaburra committed Oct 10, 2024
1 parent ae4bea8 commit 88c44e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions game.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ <h1>Global DOMination</h1>

async function resetGame() {
document.getElementById("scoreboard").close();
if (viewer) {
viewer.remove();
}
if (scoreboardMap) {
scoreboardMap.remove();
scoreboardMap = null;
Expand Down

0 comments on commit 88c44e6

Please sign in to comment.