This commit is contained in:
Guillem George 2026-05-16 18:51:01 +02:00
parent 1e4cd71e06
commit e84731e8de
4 changed files with 35 additions and 15 deletions

View file

@ -1,7 +1,6 @@
import { authedAPIRequest } from "../utils/auth";
import { subscribe } from "../utils/streams";
import { resetValues } from "./canvas/utils";
import { room } from "../pages/index"
// FIXME: This file should handle the rooms API
// Functions may include:
// - fetchRoomConfig (get the configuration of a room)
@ -18,7 +17,7 @@ let roomConfig = null;
function setCurrentRoomConfig(cfg) {
roomConfig = cfg;
}
async function getCurrentRoomConfig() {
async function getCurrentRoomConfig(room) {
if (!roomConfig) {
await fetchRoomConfig(room);
}