summaryrefslogtreecommitdiff
path: root/client-web/source
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-10-28 23:34:47 +0200
committermetamuffin <metamuffin@disroot.org>2022-10-28 23:34:47 +0200
commit70588032e29ced930f8e984f96dfbe8e8339a390 (patch)
tree1cc757b108004bda0e9c4ea1e48ab95792049192 /client-web/source
parent8040c863d7495b9a65e265f9917dc749ba28745e (diff)
downloadkeks-meet-70588032e29ced930f8e984f96dfbe8e8339a390.tar
keks-meet-70588032e29ced930f8e984f96dfbe8e8339a390.tar.bz2
keks-meet-70588032e29ced930f8e984f96dfbe8e8339a390.tar.zst
more css classes on resources
Diffstat (limited to 'client-web/source')
-rw-r--r--client-web/source/resource/file.ts2
-rw-r--r--client-web/source/user/local.ts2
-rw-r--r--client-web/source/user/remote.ts2
3 files changed, 5 insertions, 1 deletions
diff --git a/client-web/source/resource/file.ts b/client-web/source/resource/file.ts
index 20886cb..c9ba275 100644
--- a/client-web/source/resource/file.ts
+++ b/client-web/source/resource/file.ts
@@ -170,7 +170,7 @@ function file_res_inner(file: File): LocalResource {
channel.onclose = _ev => {
log("dc", `${user.display_name}: channel closed`);
transfers_el.removeChild(display.el)
- transfers_abort.delete(abort_cb)
+ transfers_abort.delete(abort_cb)
}
transfers_abort.add(abort_cb)
return channel
diff --git a/client-web/source/user/local.ts b/client-web/source/user/local.ts
index 8899d26..ab75cec 100644
--- a/client-web/source/user/local.ts
+++ b/client-web/source/user/local.ts
@@ -63,6 +63,8 @@ export class LocalUser extends User {
this.el.append(r.el)
this.room.signaling.send_relay({ provide })
+ r.el.classList.add("resource")
+ r.el.classList.add(`resource-${r.info.kind}`)
r.el.append(
ebutton("Stop", {
onclick: () => {
diff --git a/client-web/source/user/remote.ts b/client-web/source/user/remote.ts
index 5517dbe..bab8eff 100644
--- a/client-web/source/user/remote.ts
+++ b/client-web/source/user/remote.ts
@@ -97,6 +97,8 @@ export class RemoteUser extends User {
if (!d) return
if (d.info.kind == "track" && d.info.track_kind == "audio" && PREFS.optional_audio_default_enable) this.request_resource(d)
if (d.info.kind == "track" && d.info.track_kind == "video" && PREFS.optional_video_default_enable) this.request_resource(d)
+ d.el.classList.add("resource")
+ d.el.classList.add(`resource-${d.info.kind}`)
this.el.append(d.el)
this.resources.set(message.provide.id, d)
}