Use proper conditions

This commit is contained in:
Luke Murphy 2020-02-15 21:28:32 +01:00
parent 19d34f3044
commit ab3da1493b
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -56,7 +56,7 @@ function record() {
/** /**
* Start recording a sound. * Start recording a sound.
**/ **/
if (microphone.enabled) { if (microphone.enabled === true) {
recorder.record(recording); recorder.record(recording);
} }
} }
@ -65,7 +65,7 @@ function stop() {
/** /**
* Stop recording a new sound. * Stop recording a new sound.
**/ **/
if (recorder.recording) { if (recorder.recording === true) {
recorder.stop(); recorder.stop();
newSoundJustRecorded = true; newSoundJustRecorded = true;
} }