Skip to content

Commit 4538859

Browse files
authored
Правит таймкоды для плеера (#404)
1 parent 727e385 commit 4538859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/modules/podcast.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function matchTimecode(string) {
2121
*/
2222
function parseTimecode(time) {
2323
return time.split(':').reduceRight((acc, item, index, items) => {
24-
return acc = parseFloat(item) * Math.pow(60, items.length - 1 - index);
24+
return acc + parseFloat(item) * Math.pow(60, items.length - 1 - index);
2525
}, 0);
2626
}
2727

0 commit comments

Comments
 (0)