diff options
Diffstat (limited to 'client-web/source/helper.ts')
-rw-r--r-- | client-web/source/helper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client-web/source/helper.ts b/client-web/source/helper.ts index c277c0d..4f97ebb 100644 --- a/client-web/source/helper.ts +++ b/client-web/source/helper.ts @@ -11,9 +11,9 @@ const elem_with_content = (s: string) => (c: string) => { e.textContent = c return e } -const elem_with_children = (s: string) => (opts: { classes?: string[] }, ...cs: (HTMLElement | string)[]) => { +const elem_with_children = (s: string) => (opts: { class?: string[] }, ...cs: (HTMLElement | string)[]) => { const e = elem(s) - if (opts.classes) e.classList.add(...opts.classes) + if (opts.class) e.classList.add(...opts.class) for (const c of cs) { e.append(c) } |