From 8b11f29a5e83a8bd6d9111e7b2d871eaab5536eb Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 27 Apr 2024 20:22:56 +0200 Subject: prototype stream previews --- client-web/source/preferences/ui.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client-web/source/preferences/ui.ts') diff --git a/client-web/source/preferences/ui.ts b/client-web/source/preferences/ui.ts index 9cb52fd..c710f54 100644 --- a/client-web/source/preferences/ui.ts +++ b/client-web/source/preferences/ui.ts @@ -57,6 +57,8 @@ export function ui_preferences(): HTMLElement { textbox.type = "number" textbox.id = id textbox.value = PREFS[key] as string + if (decl.min) textbox.min = "" + decl.min + if (decl.max) textbox.max = "" + decl.max textbox.onchange = () => { change_pref(key, parseFloat(textbox.value)) } -- cgit v1.2.3-70-g09d2