diff options
Diffstat (limited to 'src/js-components/previewBar.ts')
-rw-r--r-- | src/js-components/previewBar.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index 7f011f0d..67d28c1a 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -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"; |