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/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/simon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
let sequence = [];
let playerSequence = [];
let level = 1;
let highScore = parseInt(localStorage.getItem('simonHighScore')) || 0;
let highScore = parseInt(localStorage.getItem('simonHighScore', 10)) || 0;
let gameActive = false;
let showingSequence = false;
let inputLocked = false;
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/scripts/sudoku.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function handleKeyPress(e) {

const key = e.key;
if (key >= '1' && key <= '9') {
inputNumber(parseInt(key));
inputNumber(parseInt(key, 10));
} else if (key === 'Delete' || key === 'Backspace') {
clearCell();
}
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));