aboutsummaryrefslogtreecommitdiff
path: root/client-web
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-09-10 22:57:59 +0200
committermetamuffin <metamuffin@disroot.org>2022-09-10 22:57:59 +0200
commit5fbc95284594ceca385019c74f82ea9371591531 (patch)
tree6e2d4b9fa2745e7711cb7928ebd6b4bf8521fd3c /client-web
parent33fe5396ec837c7ddfab32571027f2e43e6b7725 (diff)
downloadkeks-meet-5fbc95284594ceca385019c74f82ea9371591531.tar
keks-meet-5fbc95284594ceca385019c74f82ea9371591531.tar.bz2
keks-meet-5fbc95284594ceca385019c74f82ea9371591531.tar.zst
regenerate param table
Diffstat (limited to 'client-web')
-rw-r--r--client-web/scripts/gen_param_table.ts3
-rw-r--r--client-web/source/user/local.ts4
2 files changed, 3 insertions, 4 deletions
diff --git a/client-web/scripts/gen_param_table.ts b/client-web/scripts/gen_param_table.ts
index cc9a5ac..7179d7e 100644
--- a/client-web/scripts/gen_param_table.ts
+++ b/client-web/scripts/gen_param_table.ts
@@ -1,4 +1,5 @@
-import { PrefDecl, PREF_DECLS } from "../source/preferences.ts";
+import { PREF_DECLS } from "../source/preferences/decl.ts";
+import { PrefDecl } from "../source/preferences/mod.ts";
console.log(`Option name|Type|Default|Description`);
console.log(`---|---|---|---`);
diff --git a/client-web/source/user/local.ts b/client-web/source/user/local.ts
index 6fae710..c58af2a 100644
--- a/client-web/source/user/local.ts
+++ b/client-web/source/user/local.ts
@@ -121,9 +121,7 @@ export class LocalUser extends User {
const destination = context.createMediaStreamDestination()
const gain = context.createGain()
gain.gain.value = PREFS.microphone_gain
- const clear_gain_cb = on_pref_changed("microphone_gain", () => {
- gain.gain.value = PREFS.microphone_gain
- })
+ const clear_gain_cb = on_pref_changed("microphone_gain", () => gain.gain.value = PREFS.microphone_gain)
let rnnoise: RNNoiseNode;
if (PREFS.rnnoise) {