Skip to content

Commit

Permalink
fix some bug, disable map copy
Browse files Browse the repository at this point in the history
  • Loading branch information
dixyes committed Oct 20, 2017
1 parent fc7382e commit c098417
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const fs = require('hexo-fs'),
['DPlayer.min.css', styleDir],
['DPlayer.min.js', scriptDir],
// some map for debug use
['DPlayer.min.css.map', styleDir],
//['DPlayer.min.css.map', styleDir],
//['DPlayer.min.js.map', scriptDir],
// if there be any other dplayer file
//['someDplayerFile.xxx', targetDir],
Expand Down Expand Up @@ -89,7 +89,7 @@ hexo.extend.tag.register('dplayer', function(args) {
var id = 'dplayer' + (counter++);
args.forEach(item => {
const k = item.split('=')[0],
v = item.split('=').length === 1 || item.split('=')[1];
v = item.split('=').length === 1 || item.slice(item.indexOf('=')+1);
switch(k){
case 'autoplay':
autoplay = v == "true" | v === "yes" | v === "1" | v === true;
Expand Down Expand Up @@ -172,7 +172,7 @@ hexo.extend.tag.register('dplayer', function(args) {
id: did,
token: token,
maximum: maximum,
addition: (addition == undefined ? undefined : [addition] )
addition: (addition == undefined ? undefined : [addition] )
})
}).replace("\"document.getElementById('')\"",'document.getElementById("'+ id +'")') +
');</script>';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-tag-dplayer",
"version": "0.2.0",
"version": "0.2.1",
"description": "Embed dplayer in Hexo posts/pages",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit c098417

Please sign in to comment.