We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d98538 commit cfd5f85Copy full SHA for cfd5f85
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "aplayer",
3
- "version": "1.2.8",
+ "version": "1.2.9",
4
"description": "Wow, such a beautiful html5 music player",
5
"main": "APlayer.js",
6
"scripts": {
src/APlayer.js
@@ -92,7 +92,7 @@ APlayer.prototype.init = function () {
92
93
// music pic
94
if (this.music.pic) {
95
- this.element.getElementsByClassName('aplayer-pic')[0].style.backgroundImage = 'url(' + this.music.pic + ')';
+ this.element.getElementsByClassName('aplayer-pic')[0].style.backgroundImage = 'url(' + encodeURI(this.music.pic) + ')';
96
}
97
98
// fill in lrc
0 commit comments