diff --git a/public/scripts/profile-editor.js b/public/scripts/profile-editor.js index 726ddc6..850996f 100644 --- a/public/scripts/profile-editor.js +++ b/public/scripts/profile-editor.js @@ -8,7 +8,9 @@ document.addEventListener('DOMContentLoaded', () => { // Get playerId from meta tag const displayNameMeta = document.querySelector('meta[name="displayName"]'); - const initialDisplayName = displayNameMeta ? displayNameMeta.content : 'New Player'; + const initialDisplayName = displayNameMeta + ? displayNameMeta.content + : 'New Player'; // Initialize display name with initial name displayNameSpan.textContent = initialDisplayName; diff --git a/src/view/board-renderer.ts b/src/view/board-renderer.ts index 22ca59d..44d3cf2 100644 --- a/src/view/board-renderer.ts +++ b/src/view/board-renderer.ts @@ -6,7 +6,7 @@ export function renderGameBoardHtml( ): string { // Check the last move, so that the stone can be highlighted const lastMove = game.history[game.history.length - 1]; - + let boardHtml = '
'; for (let row = 0; row < game.board.length; row++) { for (let col = 0; col < game.board[row].length; col++) { @@ -16,7 +16,8 @@ export function renderGameBoardHtml( if (stone) { const colorClass = stone === 'black' ? 'stone-black-heart' : 'stone-white-heart'; - const lastMoveClass = col == lastMove.col && row == lastMove.row ? 'last-move' : ''; + const lastMoveClass = + col == lastMove.col && row == lastMove.row ? 'last-move' : ''; stoneHtml = `
`; }