diff --git a/src/client/gameselector.ts b/src/client/gameselector.ts index 6211761..27de65c 100644 --- a/src/client/gameselector.ts +++ b/src/client/gameselector.ts @@ -68,10 +68,10 @@ export class GameSelector { btn.append(icon); const name = document.createElement('span'); - name.innerText = game.name; + name.textContent = game.name; btn.append(name); - this.gameListElement.appendChild(btn); + this.gameListElement.append(btn); } this.updateSelected();