mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-07-06 20:14:15 -05:00
Fix no section showing up when joining a game with no name set
This commit is contained in:
parent
0b6ddb39b0
commit
2c2deb5691
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="UTF-8"/>
|
||||
<base href="https://questers-rest.andriocelos.net/tableturf/"/>
|
||||
<script>
|
||||
document.getElementsByTagName('base')[0].href = window.location.toString().replace(/\/(?:index.html|game\/[^/]*)$/, '/');
|
||||
document.getElementsByTagName('base')[0].href = window.location.toString().replace(/\/(?:index.html|deckeditor|game\/[^/]*)$/, '/');
|
||||
</script>
|
||||
<title>Tableturf Battle</title>
|
||||
<link rel="stylesheet" href="tableturf.css"/>
|
||||
|
|
|
|||
|
|
@ -147,6 +147,8 @@ function presetGameID(url: string) {
|
|||
(document.getElementById('gameIDBox') as HTMLInputElement).value = url;
|
||||
if (playerName)
|
||||
tryJoinGame(playerName, url, true);
|
||||
else
|
||||
showSection('preGame');
|
||||
}
|
||||
|
||||
preGameDeckEditorButton.addEventListener('click', e => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user