Skip to content

Commit 3c0de25

Browse files
author
Mikhail Baranov
committed
fix error at microphone.js in readonly mode
1 parent 7bcf563 commit 3c0de25

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
- bootstrap-slider: [site](http://seiyria.com/bootstrap-slider/), [repo](https://github.com/seiyria/bootstrap-slider), license: https://github.com/seiyria/bootstrap-slider/blob/master/LICENSE.md
3030

31+
- recordrtc: [site](http://recordrtc.org/), [repo](https://github.com/muaz-khan/RecordRTC), license [MIT](http://spdx.org/licenses/MIT.html)
32+
3133
## Getting started
3234
es5 examples: https://surveyjs.io/Examples/Library/?id=custom-widget-select2-tagbox
3335
es modules examples: https://stackblitz.com/edit/surveyjs-widgets-react

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "surveyjs-widgets",
3-
"version": "1.0.11",
3+
"version": "1.0.13",
44
"scripts": {
55
"start": "npm run build && live-server",
66
"prebuild": "webpack --env.buildType dev",

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)