Use "const" for chapters keys

Array is reversed but variable holding it is not replaced in this function, so "const" can be used here
This commit is contained in:
Rafał Dzięgiel
2021-04-22 15:28:19 +02:00
parent bd13a3c15a
commit 46ef6bcd1d

View File

@@ -429,7 +429,7 @@ class ClapperPlayer extends GstClapper.Clapper
return false;
const now = this.position / Gst.SECOND;
let chapterTimes = Object.keys(chapters);
const chapterTimes = Object.keys(chapters);
if(isPrevious)
chapterTimes.reverse();