Skip to content

Commit c752b41

Browse files
authored
Merge pull request #42 from baminmru/master
fix error at microphone.js in readonly mode
2 parents ceda156 + 3c0de25 commit c752b41

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/microphone.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ function init(Survey) {
7474
console.log("dataUri: " +dataUri);
7575
question.value = dataUri;
7676
audioEl.src=dataUri;
77-
78-
console.log("cleaning");
79-
question.survey.recordRTC=undefined;
80-
question.survey.mystream=undefined;
81-
};
77+
78+
console.log("cleaning");
79+
question.survey.recordRTC=undefined;
80+
question.survey.mystream=undefined;
81+
};
8282
fileReader.readAsDataURL(recordedBlob);
8383
};
8484

@@ -132,7 +132,7 @@ function init(Survey) {
132132
if (!question.isReadOnly) {
133133
buttonStopEl.onclick = stopRecording;
134134
} else {
135-
buttonStopEl.parentNode.removeChild(buttonStartEl);
135+
buttonStopEl.parentNode.removeChild(buttonStopEl);
136136
}
137137

138138

0 commit comments

Comments
 (0)