Skip to content

Commit 26529e0

Browse files
committed
Merge branch 'hotfix/1.4.2'
2 parents d65afed + 9304bfe commit 26529e0

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-aplayer",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"description": "Easy-to-config music player for Vue 2.x",
55
"main": "dist/vue-aplayer.min.js",
66
"files": [
@@ -23,8 +23,8 @@
2323
"keywords": [
2424
"vue",
2525
"aplayer",
26-
"player",
27-
"music",
26+
"vue-aplayer",
27+
"music-player",
2828
"html5"
2929
],
3030
"author": {

src/vue-aplayer.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,11 @@
434434
},
435435
pause () {
436436
this.audioPlayPromise
437-
// Avoid force rejection throws Uncaught
438-
.catch(() => {
437+
.then(() => {
438+
this.audio.pause()
439439
})
440-
.finally(() => {
440+
// Avoid force rejection throws Uncaught
441+
.catch(() => {
441442
this.audio.pause()
442443
})
443444

0 commit comments

Comments
 (0)