From 564a6f1e38af84ef857e25bb0266012b38d1fb1d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 8 Sep 2023 15:03:48 +0200 Subject: batch add rooms --- client-web/source/room_watches.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client-web/source') diff --git a/client-web/source/room_watches.ts b/client-web/source/room_watches.ts index 37d6dce..fb07ff5 100644 --- a/client-web/source/room_watches.ts +++ b/client-web/source/room_watches.ts @@ -58,7 +58,8 @@ export function ui_room_watches(conn: SignalingConnection): HTMLElement { e("label", {}, "Add room:", input = e("input", { type: "text" })), e("button", { async onclick(_e) { - await add_watch(input.value) + for (const w in input.value.split(";")) + await add_watch(w) update_watches() save_watches() input.value = "" -- cgit v1.2.3-70-g09d2