fix(lan-client): wire exit button to location.reload()
executeReset() references #game-board which doesn't exist in this HTML, so the function threw a TypeError and silently did nothing. Swap the exit button's onclick to location.reload() — the browser-refresh path the user confirmed works to return to the setup screen. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
69bdd94ef2
commit
45ca961064
1 file changed
+1
-1
@@ -52,7 +52,7 @@
|
||||
<button class="btn-util" onclick="toggleSettingsPanel()" title="Settings">⚙</button>
|
||||
<button class="btn-util" id="btn-search-toggle" onclick="document.getElementById('card-search-sidebar').classList.toggle('collapsed')" title="Card Search (S)">🔍</button>
|
||||
<button class="btn-util" id="btn-deckbuilder-toggle" onclick="toggleDeckBuilderPanel()" title="Deck Builder">🃏</button>
|
||||
<button class="btn-util btn-util-exit" onclick="confirmReset()" title="Return to Start Screen">✕</button>
|
||||
<button class="btn-util btn-util-exit" onclick="location.reload()" title="Return to Start Screen">✕</button>
|
||||
</div>
|
||||
|
||||
<!-- Storm counter -->
|
||||
|
||||
Reference in new issue
Block a user