diff options
Diffstat (limited to 'client-web/source/user/remote.ts')
-rw-r--r-- | client-web/source/user/remote.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client-web/source/user/remote.ts b/client-web/source/user/remote.ts index 5e81cf7..907dd50 100644 --- a/client-web/source/user/remote.ts +++ b/client-web/source/user/remote.ts @@ -7,7 +7,6 @@ import { RelayMessage } from "../../../common/packets.d.ts"; import { notify } from "../helper.ts"; -import { ROOM_CONTAINER } from "../index.ts" import { log } from "../logger.ts" import { PREFS } from "../preferences/mod.ts"; import { new_remote_resource, RemoteResource } from "../resource/mod.ts"; @@ -79,7 +78,7 @@ export class RemoteUser extends User { log("usermodel", `remove remote user: ${this.display_name}`) this.pc.close() this.room.remote_users.delete(this.id) - ROOM_CONTAINER.removeChild(this.el) + this.room.element.removeChild(this.el) if (PREFS.notify_leave) notify(`${this.display_name} left`) } on_relay(message: RelayMessage) { |