summaryrefslogtreecommitdiff
path: root/client-web/source/user/local.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-09-17 18:39:31 +0200
committermetamuffin <metamuffin@disroot.org>2022-09-17 18:39:31 +0200
commitfa44b02da29a0bd1b60026d4f6ffd6c9748a09da (patch)
tree4a4163002644b84b5e77e47e615040b9cc364c46 /client-web/source/user/local.ts
parent45c7c27d5ebd54790d76dd34d97de35d221c8411 (diff)
downloadkeks-meet-fa44b02da29a0bd1b60026d4f6ffd6c9748a09da.tar
keks-meet-fa44b02da29a0bd1b60026d4f6ffd6c9748a09da.tar.bz2
keks-meet-fa44b02da29a0bd1b60026d4f6ffd6c9748a09da.tar.zst
refactor resource
Diffstat (limited to 'client-web/source/user/local.ts')
-rw-r--r--client-web/source/user/local.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client-web/source/user/local.ts b/client-web/source/user/local.ts
index 9268a9e..56ff9f0 100644
--- a/client-web/source/user/local.ts
+++ b/client-web/source/user/local.ts
@@ -77,10 +77,10 @@ export class LocalUser extends User {
this.el.append(r.el)
const provide: ProvideInfo = r.info
this.room.signaling.send_relay({ provide })
- r.on_destroy = () => {
+ r.addEventListener("destroy", () => {
this.el.removeChild(r.el);
this.room.signaling.send_relay({ provide_stop: { id: r.info.id } })
- }
+ })
}
async create_camera_res() {