Skip to content

Commit cfd5f85

Browse files
committed
fix encodeURI
1 parent 6d98538 commit cfd5f85

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aplayer",
3-
"version": "1.2.8",
3+
"version": "1.2.9",
44
"description": "Wow, such a beautiful html5 music player",
55
"main": "APlayer.js",
66
"scripts": {

src/APlayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ APlayer.prototype.init = function () {
9292

9393
// music pic
9494
if (this.music.pic) {
95-
this.element.getElementsByClassName('aplayer-pic')[0].style.backgroundImage = 'url(' + this.music.pic + ')';
95+
this.element.getElementsByClassName('aplayer-pic')[0].style.backgroundImage = 'url(' + encodeURI(this.music.pic) + ')';
9696
}
9797

9898
// fill in lrc

0 commit comments

Comments
 (0)