mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 22:17:21 +03:00
Fixed preview bar hover text error
This commit is contained in:
@@ -115,7 +115,7 @@ class PreviewBar {
|
|||||||
|
|
||||||
// Find category at that location
|
// Find category at that location
|
||||||
let category = null;
|
let category = null;
|
||||||
for (let i = 0; i < this.timestamps.length; i++) {
|
for (let i = 0; i < this.timestamps?.length; i++) {
|
||||||
if (this.timestamps[i][0] < timeInSeconds && this.timestamps[i][1] > timeInSeconds){
|
if (this.timestamps[i][0] < timeInSeconds && this.timestamps[i][1] > timeInSeconds){
|
||||||
category = this.types[i];
|
category = this.types[i];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user