|
|
@ -139,6 +139,9 @@ import { onMount } from 'svelte';
|
|
|
|
onMount(() => {
|
|
|
|
onMount(() => {
|
|
|
|
const search_params = new URLSearchParams(window.location.search);
|
|
|
|
const search_params = new URLSearchParams(window.location.search);
|
|
|
|
arena_id = search_params.get("arena");
|
|
|
|
arena_id = search_params.get("arena");
|
|
|
|
|
|
|
|
if (arena_id === null) {
|
|
|
|
|
|
|
|
arena_id = "default";
|
|
|
|
|
|
|
|
}
|
|
|
|
arena_topic = `arena/${arena_id}`;
|
|
|
|
arena_topic = `arena/${arena_id}`;
|
|
|
|
arena_state_topic = `arena/${arena_id}/state`;
|
|
|
|
arena_state_topic = `arena/${arena_id}/state`;
|
|
|
|
arena_score_topic = `arena/${arena_id}/score`;
|
|
|
|
arena_score_topic = `arena/${arena_id}/score`;
|
|
|
|