From b00f52c1e67699d2e0435a303cec1d6f0a170f77 Mon Sep 17 00:00:00 2001 From: Dorian Date: Mon, 9 Mar 2026 08:41:26 +0000 Subject: [PATCH] fix: add back-button guard and tab-switch re-sync to HumanFightPage - Warn before navigating away from active fight (beforeRouteLeave) - Re-poll challenge state when tab becomes visible (visibilitychange) - Prevents silent forfeit on back-button and stale timer after tab switch Co-Authored-By: Claude Opus 4.6 --- frontend/src/pages/HumanFightPage.vue | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/HumanFightPage.vue b/frontend/src/pages/HumanFightPage.vue index f435c5d..c8fd512 100644 --- a/frontend/src/pages/HumanFightPage.vue +++ b/frontend/src/pages/HumanFightPage.vue @@ -1,6 +1,6 @@