Spaces:
Runtime error
Runtime error
rooms selector
Browse files
frontend/src/lib/Buttons/RoomsSelector.svelte
CHANGED
@@ -34,9 +34,10 @@
|
|
34 |
function changeRoom(room: RoomResponse) {
|
35 |
$selectedRoomID = room.room_id;
|
36 |
collapsed = true;
|
37 |
-
|
38 |
-
|
39 |
-
window.
|
|
|
40 |
}
|
41 |
</script>
|
42 |
|
|
|
34 |
function changeRoom(room: RoomResponse) {
|
35 |
$selectedRoomID = room.room_id;
|
36 |
collapsed = true;
|
37 |
+
const params = new URLSearchParams(window.location.search);
|
38 |
+
params.set('roomid', room.room_id);
|
39 |
+
window.location.search = params.toString()
|
40 |
+
window.parent.postMessage({ queryString: params.toString() }, '*');
|
41 |
}
|
42 |
</script>
|
43 |
|