Skip to content

Commit

Permalink
change url in packege.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dixyes committed Oct 23, 2017
1 parent 49713da commit d938af3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ hexo.extend.tag.register('dplayer', (args) => {
opt.url = urlFn.resolve(hexo.config.root, asset.path);
}
}
raw += '<script>var player = new DPlayer(' +
raw += '<script>(function(){var player = new DPlayer(' +
JSON.stringify({
//element: "document.getElementById('')",
container: "document.getElementById('')",
Expand Down Expand Up @@ -181,7 +181,7 @@ hexo.extend.tag.register('dplayer', (args) => {
return v;
}
}).replace("\"document.getElementById('')\"",'document.getElementById("'+ id +'")') +
');' + (opt.code || def.code || '') + '</script>';
');' + (opt.code || def.code || '') + '})()</script>';
//console.log(opt.code,def.code,(opt.code || def.code || ''))
}
else{
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/NextMoe/hexo-tag-dplayer.git"
"url": "git+https://github.com/MoePlayer/hexo-tag-dplayer.git"
},
"bugs": {
"url": "https://github.com/NextMoe/hexo-tag-dplayer/issues"
"url": "https://github.com/MoePlayer/hexo-tag-dplayer/issues"
},
"homepage": "https://github.com/NextMoe/hexo-tag-dplayer#readme",
"homepage": "https://github.com/MoePlayer/hexo-tag-dplayer#readme",
"dependencies": {
"dplayer": "^1.6.0",
"hexo-fs": "^0.1.6",
Expand Down

0 comments on commit d938af3

Please sign in to comment.