feat(*): Enable joining a room from the homepage

This commit is contained in:
Josh Creek
2023-07-09 21:33:27 +00:00
parent 7547776a49
commit 9d00bd4953
+2 -2
View File
@@ -1,9 +1,9 @@
<script> <script>
import { generateRoomId } from './estimation/estimation.js'; import { generateId } from './estimation/estimation.js';
import { goto } from '$app/navigation'; import { goto } from '$app/navigation';
function startARoom() { function startARoom() {
const roomId = generateRoomId(); const roomId = generateId();
goto(`/estimation/${roomId}`); goto(`/estimation/${roomId}`);
} }
</script> </script>