Skip to content

Commit

Permalink
修复弹幕转换至Artplayer时无颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
xrz-cloud authored Jul 15, 2023
1 parent 5a512eb commit a62df82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/DanChange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const xml2json = {
DIC['data'].push({
text: x['__text'],
time: parseFloat(p_arr[0]),
color: (parseInt(p_arr[3])).toString(16),
color: "#" + (parseInt(p_arr[3])).toString(16),
border: false,
mode: TYPE
})
Expand Down Expand Up @@ -162,4 +162,4 @@ export const Filter = {
return JSON.stringify(_json)
}
}
}
}

1 comment on commit a62df82

@vercel
Copy link

@vercel vercel bot commented on a62df82 Jul 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.