diff --git a/index.js b/index.js index 6a48332..7284f80 100644 --- a/index.js +++ b/index.js @@ -145,7 +145,7 @@ hexo.extend.tag.register('dplayer', function(args) { id: did, token: token, maximum: maximum, - addition: [addition] + addition: (addition == undefined ? undefined : [addition] ) }) }).replace("\"document.getElementById('')\"",'document.getElementById("'+ id +'")') + ');';