Skip to content

Commit 907c55b

Browse files
Fix navigation bugs moving to game.html
1 parent b84ea42 commit 907c55b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/home/difficulty.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ document.addEventListener('DOMContentLoaded', () => {
2525

2626
localStorage.setItem('playerName', name);
2727
localStorage.setItem('difficultyLevel', difficulty);
28-
window.location.href = '/typing-speed-test/game';
28+
window.location.href = 'game.html';
2929
});
3030
});

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ app.get('/', (req, res) => {
1212
res.sendFile(path.join(__dirname, 'index.html'));
1313
});
1414

15-
app.get('/typing-speed-test/game', (req, res) => {
15+
app.get('/game', (req, res) => {
1616
res.sendFile(path.join(__dirname, '/game.html'));
1717
});
1818

0 commit comments

Comments
 (0)