mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 04:57:09 +03:00
Don't crash if bar types are missing
This commit is contained in:
@@ -194,7 +194,7 @@ class PreviewBar {
|
||||
|
||||
bar.setAttribute('data-vs-segment-type', barSegmentType);
|
||||
|
||||
bar.style.backgroundColor = Config.config.barTypes[barSegmentType].color;
|
||||
bar.style.backgroundColor = Config.config.barTypes[barSegmentType]?.color;
|
||||
if (!this.onMobileYouTube) bar.style.opacity = Config.config.barTypes[barSegmentType].opacity;
|
||||
|
||||
bar.style.position = "absolute";
|
||||
|
||||
Reference in New Issue
Block a user