no moulinette ?
This commit is contained in:
parent
a0b5e97058
commit
2b7b6b8684
5 changed files with 50 additions and 16 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { initSocket } from "../utils/streams";
|
||||
import { initSocket, subscribe } from "../utils/streams";
|
||||
import { calculateLayout } from "./utils";
|
||||
import { authenticate } from "../utils/auth";
|
||||
import { fetchRoomConfig } from "../rooms";
|
||||
|
||||
// Initialize the layout
|
||||
calculateLayout();
|
||||
|
|
@ -11,6 +12,13 @@ async () => {
|
|||
return;
|
||||
}
|
||||
|
||||
let room = window.location.pathname.split("/")[1];
|
||||
|
||||
if (room === "") {
|
||||
room = "epi-place";
|
||||
}
|
||||
|
||||
initSocket();
|
||||
// subscribe()
|
||||
subscribe(room, "pixel-update");
|
||||
fetchRoomConfig(room);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue