diff --git a/TableturfBattleClient/src/Pages/PreGamePage.ts b/TableturfBattleClient/src/Pages/PreGamePage.ts index af5ad4f..9f8050f 100644 --- a/TableturfBattleClient/src/Pages/PreGamePage.ts +++ b/TableturfBattleClient/src/Pages/PreGamePage.ts @@ -170,6 +170,18 @@ preGameHelpButton.addEventListener('click', e => { setUrl('help'); }); +helpDialog.addEventListener('close', () => { + if (canPushState) { + try { + history.pushState(null, '', '.'); + } catch { + canPushState = false; + } + } + if (location.hash) + location.hash = ''; +}); + preGameReplayButton.addEventListener('click', e => { e.preventDefault();