summaryrefslogtreecommitdiff
path: root/client-web/source/room.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-09-07 20:24:21 +0200
committermetamuffin <metamuffin@disroot.org>2023-09-07 20:24:21 +0200
commitf5fa4f7d58344c2dc722d1f37c1d7a008f6ee9b3 (patch)
treec7ac2a7497670745c73f927abf264d63a5a4805d /client-web/source/room.ts
parent2d0761b8932f11b01e241e2db3a8f08250efe878 (diff)
downloadkeks-meet-f5fa4f7d58344c2dc722d1f37c1d7a008f6ee9b3.tar
keks-meet-f5fa4f7d58344c2dc722d1f37c1d7a008f6ee9b3.tar.bz2
keks-meet-f5fa4f7d58344c2dc722d1f37c1d7a008f6ee9b3.tar.zst
new element creation helper
Diffstat (limited to 'client-web/source/room.ts')
-rw-r--r--client-web/source/room.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/client-web/source/room.ts b/client-web/source/room.ts
index 9d0f33d..ba18162 100644
--- a/client-web/source/room.ts
+++ b/client-web/source/room.ts
@@ -11,7 +11,7 @@ import { LocalUser } from "./user/local.ts";
import { ClientboundPacket, RelayMessage } from "../../common/packets.d.ts";
import { SignalingConnection } from "./protocol/mod.ts";
import { Chat } from "./chat.ts";
-import { ediv } from "./helper.ts";
+import { e } from "./helper.ts";
export class Room {
public remote_users: Map<number, RemoteUser> = new Map()
@@ -23,9 +23,7 @@ export class Room {
public on_ready = () => { };
constructor(public signaling: SignalingConnection, public rtc_config: RTCConfiguration) {
- this.element = ediv({ class: "room", aria_label: "user list" })
- this.signaling.control_handler = (a) => this.control_handler(a)
- this.signaling.relay_handler = (a, b) => this.relay_handler(a, b)
+ this.element = e("div", { class: "room", aria_label: "user list" })
}
control_handler(packet: ClientboundPacket) {