This commit is contained in:
Harvey Zack committed 2018-11-13 18:55:48 +08:00
1 parent 49fe680c87
commit cd001655e4
8 files changed
+63 -53

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ export default class Progress {
this.$tip = $control.querySelector('.art-progress-tip');
highlight.forEach(item => {
const left = Number(item.time) / player.duration;
const left = Number(item.time || 0) / player.duration;
append(this.$highlight, `<span data-text="${item.text || ''}" data-time="${item.time || 0}" style="left: ${left * 100}%"></span>`);
});