fix encodeURI

This commit is contained in:
DIYgod
2016-01-03 01:06:26 +08:00
parent 6d98538a22
commit cfd5f85c7d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "aplayer",
"version": "1.2.8",
"version": "1.2.9",
"description": "Wow, such a beautiful html5 music player",
"main": "APlayer.js",
"scripts": {
+1 -1
View File
@@ -92,7 +92,7 @@ APlayer.prototype.init = function () {
// music pic
if (this.music.pic) {
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) + ')';
}
// fill in lrc