From ab3da1493bcbd0033dba8af109575c33aa9d96bc Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 15 Feb 2020 21:28:32 +0100 Subject: [PATCH] Use proper conditions --- voicegardens/static/voicegardens.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index 756e101..94114f0 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -56,7 +56,7 @@ function record() { /** * Start recording a sound. **/ - if (microphone.enabled) { + if (microphone.enabled === true) { recorder.record(recording); } } @@ -65,7 +65,7 @@ function stop() { /** * Stop recording a new sound. **/ - if (recorder.recording) { + if (recorder.recording === true) { recorder.stop(); newSoundJustRecorded = true; }