From 261d1f331560c80d8b7bd3035cdd79217e011653 Mon Sep 17 00:00:00 2001 From: palumbon Date: Wed, 4 Dec 2024 03:58:47 +0100 Subject: [PATCH] Hot fix for project name from url --- public/game/concurso2024.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/game/concurso2024.js b/public/game/concurso2024.js index 968c5a8..2d3e46b 100644 --- a/public/game/concurso2024.js +++ b/public/game/concurso2024.js @@ -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'