Added default arena_id

nm_live
noah metz 2024-01-02 20:53:49 -07:00
parent 1eba5f6d39
commit 3e6bf34c2d
1 changed files with 3 additions and 0 deletions

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