Skip to content

Commit 17af59b

Browse files
committed
fixed issue 36
1 parent 91921c1 commit 17af59b

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [1.0.4] 2020-03-29
10+
### Fixed
11+
+ 处理[issues 36](https://github.com/2fps/recorder/issues/36)
12+
913
## [1.0.3] 2020-02-18
1014
### Fixed
1115
+ 处理[issues 32](https://github.com/2fps/recorder/issues/32)中的衍生问题,safari下,disconnect后再次connect的bug。

dist/recorder.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/recorder.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-audio-recorder",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "js audio recorder plugin",
55
"main": "./index.js",
66
"scripts": {

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class Index extends Recorder {
131131
}
132132

133133
this.isplaying = false;
134-
this.onpauseplay();
134+
this.onpauseplay && this.onpauseplay();
135135
Player.pausePlay();
136136
}
137137

@@ -163,7 +163,7 @@ class Index extends Recorder {
163163
}
164164

165165
this.isplaying = false;
166-
this.onstopplay();
166+
this.onstopplay && this.onstopplay();
167167
Player.stopPlay();
168168
}
169169

0 commit comments

Comments
 (0)