pieds
This commit is contained in:
parent
1e4cd71e06
commit
e84731e8de
4 changed files with 35 additions and 15 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue