From 88241946e3144fede5c86f98d00bb723c1cc2761 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 7 Sep 2022 18:05:27 +0200 Subject: compiler crash……… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client-web/source/user.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'client-web/source/user.ts') diff --git a/client-web/source/user.ts b/client-web/source/user.ts index bda875f..dbf2862 100644 --- a/client-web/source/user.ts +++ b/client-web/source/user.ts @@ -6,18 +6,13 @@ import { TrackHandle } from "./track_handle.ts"; export abstract class User { - name: string - room: Room - el: HTMLElement local = false protected tracks: Set = new Set() - constructor(room: Room, name: string) { - this.name = name - this.room = room + constructor(public room: Room, public id: number, public name: string) { this.el = document.createElement("div") this.el.classList.add("user") this.room.el.append(this.el) @@ -60,7 +55,6 @@ export abstract class User { if (this.local) media_el.muted = true - const el = document.createElement("div") if (t.local) { const end_button = document.createElement("button") -- cgit v1.2.3-70-g09d2