Use proper conditions
This commit is contained in:
parent
19d34f3044
commit
ab3da1493b
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user