mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-08-22 02:44:01 -05:00
Client: Fix incorrect back button behaviour
This commit is contained in:
@@ -188,7 +188,7 @@
|
||||
</div>
|
||||
<div id="deckListSection" hidden>
|
||||
<section id="deckEditorDeckListSection">
|
||||
<a id="deckListBackButton" href="..">Back</a>
|
||||
<a id="deckListBackButton" href=".">Back</a>
|
||||
<h3>Deck list</h3>
|
||||
<div id="deckList">
|
||||
<button id="newDeckButton">New deck</label>
|
||||
|
||||
@@ -24,7 +24,7 @@ deckListBackButton.addEventListener('click', e => {
|
||||
|
||||
if (canPushState) {
|
||||
try {
|
||||
history.pushState(null, '', '..');
|
||||
history.pushState(null, '', '.');
|
||||
} catch {
|
||||
canPushState = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user