mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 19:47:04 +03:00
Change variable names
This commit is contained in:
@@ -179,12 +179,12 @@ class PreviewBar {
|
|||||||
bar.classList.add('previewbar');
|
bar.classList.add('previewbar');
|
||||||
bar.innerHTML = ' ';
|
bar.innerHTML = ' ';
|
||||||
|
|
||||||
const barSegmentType = (preview ? 'preview-' : '') + category;
|
const fullCategoryName = (preview ? 'preview-' : '') + category;
|
||||||
|
|
||||||
bar.setAttribute('data-vs-segment-type', barSegmentType);
|
bar.setAttribute('sponsorblock-category', fullCategoryName);
|
||||||
|
|
||||||
bar.style.backgroundColor = Config.config.barTypes[barSegmentType]?.color;
|
bar.style.backgroundColor = Config.config.barTypes[fullCategoryName]?.color;
|
||||||
if (!this.onMobileYouTube) bar.style.opacity = Config.config.barTypes[barSegmentType]?.opacity;
|
if (!this.onMobileYouTube) bar.style.opacity = Config.config.barTypes[fullCategoryName]?.opacity;
|
||||||
|
|
||||||
bar.style.position = "absolute";
|
bar.style.position = "absolute";
|
||||||
bar.style.width = this.timeToPercentage(segment[1] - segment[0]);
|
bar.style.width = this.timeToPercentage(segment[1] - segment[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user