Fix Stop permanently: navigate to real server path /game/{id} to force full page unload, add pathname routing to SPA

This commit is contained in:
David Alvarez
2026-05-23 19:21:50 +02:00
parent a3ba5f8098
commit f6a1dccdf2
2 changed files with 34 additions and 8 deletions
+3 -3
View File
@@ -65,9 +65,9 @@
}
function stopEmulator() {
// Full page reload to guarantee all workers, AudioContexts,
// and WebAssembly threads are fully terminated
window.location.href = `/#/game/${game.id}`;
// Navigate to an actual server path to force full page unload
// which kills Web Workers, AudioContexts, and WASM threads
window.location.href = `/game/${game.id}`;
}
$effect(() => { load(); });