mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user