Browse Source

Use proper conditions

main
Luke Murphy 5 years ago
parent
commit
ab3da1493b
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 4
      voicegardens/static/voicegardens.js

4
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;
}

Loading…
Cancel
Save