Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/public/games/jump-counter/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function createObstacle() {

const moveObstacle = setInterval(() => {
if (gamePaused) return;
let obstacleLeft = parseInt(obstacle.style.left);
let obstacleLeft = parseInt(obstacle.style.left, 10);
if (obstacleLeft <= -40) {
obstacle.remove();
obstacles.shift();
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/scripts/minesweeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class Minesweeper {
// Restore board content
document.querySelectorAll('.cell').forEach(cell => {
cell.style.background = cell.style.originalBackground || '';
const row = parseInt(cell.dataset.row);
const row = parseInt(cell.dataset.row, 10);
const col = parseInt(cell.dataset.col);
this.updateCellDisplay(row, col);
});
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/scripts/snake.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function trackVisit() {
},
credentials: "include",
body: JSON.stringify({ game: "snake" })
}).catch(() => { });
}).catch( => console.error());
}

function trackPlay() {
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/Backgrounds/GridScan.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -891,3 +891,5 @@ function dist2(a, b) {
}

export default GridScan;

.catch(err => console.error("Promise.all failed:", err));