Skip to content

Commit

Permalink
Hot fix for project name from url
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Dec 4, 2024
1 parent 25dfbf2 commit 261d1f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/game/concurso2024.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const parent = document.getElementById('game')
const project = document.location.pathname.split('/').slice(-1)[0]
const project = document.location.pathname.split('/').filter(x => x).slice(-1)[0]

const BASE_FOLDER = '/concurso2024/'
const GAMES_FILE = BASE_FOLDER + project + '.txt'
Expand Down

0 comments on commit 261d1f3

Please sign in to comment.