We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42fb034 commit a9c1dbaCopy full SHA for a9c1dba
packages/keybr-textinput-sounds/lib/player.ts
@@ -18,6 +18,9 @@ export function makeSoundPlayer(settings: Settings) {
18
const playSounds = settings.get(soundProps.playSounds);
19
const soundVolume = settings.get(soundProps.soundVolume);
20
const soundTheme = settings.get(soundProps.soundTheme);
21
+ if (playSounds === PlaySounds.None) {
22
+ return () => {};
23
+ }
24
const theme = loadTheme(soundTheme);
25
return (feedback: Feedback) => {
26
if (playSounds === PlaySounds.All) {
0 commit comments