mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 20:21:20 -08:00
typofix
This commit is contained in:
1 parent
9aa2bf1588
commit
26ce79e459
6 files changed
+8
-12
No files matched your search
+1
-1
@@ -52,7 +52,7 @@ export function setStyle(element, styles) {
|
||||
}
|
||||
|
||||
export function secondToTime(second) {
|
||||
const add0 = num => (num < 10 ? `0${num}` : String(num));
|
||||
const add0 = num => num < 10 ? `0${num}` : String(num);
|
||||
const hour = Math.floor(second / 3600);
|
||||
const min = Math.floor((second - hour * 3600) / 60);
|
||||
const sec = Math.floor(second - hour * 3600 - min * 60);
|
||||
|
||||
Reference in new issue
Block a user