diff --git a/frontend/src/pages/ArenaPage.vue b/frontend/src/pages/ArenaPage.vue index 8b72529..f91bb38 100644 --- a/frontend/src/pages/ArenaPage.vue +++ b/frontend/src/pages/ArenaPage.vue @@ -45,8 +45,14 @@ const tierClass = (t: number) => `tier-${t}`
+ +
+ +

LOADING FIGHTS...

+
+ -
+
`${b.wins}W - ${b.losses}L`
+ +
+ +

LOADING FIGHTERS...

+
+ -
+
diff --git a/frontend/src/router.ts b/frontend/src/router.ts index 9d3e762..895c585 100644 --- a/frontend/src/router.ts +++ b/frontend/src/router.ts @@ -67,3 +67,11 @@ export const router = createRouter({ history: createWebHistory(), routes, }) + +// Handle stale chunk 404s after deploy — force reload to get new assets +router.onError((err, to) => { + if (err.message.includes('Failed to fetch dynamically imported module') || + err.message.includes('Importing a module script failed')) { + window.location.assign(to.fullPath) + } +})