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 committed 2026-05-23 19:21:50 +02:00
1 parent a3ba5f8098
commit f6a1dccdf2
2 files changed
+34 -8

No files matched your search

+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(); });